Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify rockstar error message about using the wrong number of MPI processes #42

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions yt_astro_analysis/halo_finding/rockstar/rockstar.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ def __init__(self, num_readers, num_writers):
else:
self.num_writers = min(num_writers, psize)
if self.num_readers + self.num_writers + 1 != psize:
mylog.error('%i reader + %i writers + 1 server != %i mpi',
self.num_readers, self.num_writers, psize)
raise RuntimeError
raise RuntimeError(
'The number of MPI processes (%i) does not equal the '
'number of readers (%i) plus the number of writers '
'(%i) plus 1 server' % (
self.num_readers, self.num_writers, psize))

def run(self, handler, wg):
# Not inline so we just launch them directly from our MPI threads.
Expand Down