-
Notifications
You must be signed in to change notification settings - Fork 920
Support for MPI communicators which are provided externally #1180
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
Changes from all commits
3cb709c
f3ce5bb
8355901
3462dda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,9 +27,17 @@ | |
|
|
||
| #include "mpi_structure.hpp" | ||
|
|
||
|
|
||
| /* Initialise the MPI Communicator Rank and Size */ | ||
| int CBaseMPIWrapper::Rank = 0; | ||
| int CBaseMPIWrapper::Size = 1; | ||
|
|
||
| /* Set the default MPI Communicator */ | ||
| #ifdef HAVE_MPI | ||
| CBaseMPIWrapper::Comm CBaseMPIWrapper::currentComm = MPI_COMM_WORLD; | ||
| #else | ||
| CBaseMPIWrapper::Comm CBaseMPIWrapper::currentComm = 0; // dummy value | ||
| #endif | ||
|
Comment on lines
+35
to
+40
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like this solution.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Glad to hear that. Is anything still missing ? Not sure how to go about the failing check for code complexity ...
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not for me, I'll ask around the developers meeting tomorrow if anyone else has comments, codefactor glitches out sometimes no need to do anything. By the way would you like to be added to su2code? You can then have branches here instead of in your fork, makes it simpler to manage future PR's you might open.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I suppose it would be more convenient that way. Thanks ! |
||
|
|
||
| #ifdef HAVE_MPI | ||
| int CBaseMPIWrapper::MinRankError; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.