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

Support taking MPI communicator from application #52

Open
cwsmith opened this issue Feb 22, 2024 · 0 comments
Open

Support taking MPI communicator from application #52

cwsmith opened this issue Feb 22, 2024 · 0 comments

Comments

@cwsmith
Copy link
Contributor

cwsmith commented Feb 22, 2024

During library initialization (or some other high-level object creation; i.e., the mesh) the MPI communicator should be passed in from the user/application and used for all calls to MPI associated with that instance/object.

There is a Fortran API here, but it isn't passed into the C++ layer:

polyMPO/src/pmpo_c.cpp

Lines 54 to 58 in 3c0795d

void polympo_setMPICommunicator_f(MPI_Fint fcomm){
MPI_Comm comm = MPI_Comm_f2c(fcomm);
int commSize;
MPI_Comm_size(comm,&commSize);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant