CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   MPI query (http://www.cfd-online.com/Forums/openfoam-programming-development/104436-mpi-query.html)

nandiganavishal July 9, 2012 15:53

MPI query
 
Dear Foamers,

We need to know if we can start openfoam solvers on user-controlled mpi
communicators. In particular, we want to call mpi_init ourselves, do
some communicator splitting, and dedicate a subset of our processors to
doing calculations with openfoam. So instead of letting all MPI calls be
hidden from us, we want to start MPI ourselves and then pass in a
communicator (*not* MPI_COMM_WORLD) to OpenFoam. Can this be done?

Thanks

Regards

Vishal

gschaider July 9, 2012 18:01

Quote:

Originally Posted by nandiganavishal (Post 370523)
Dear Foamers,

We need to know if we can start openfoam solvers on user-controlled mpi
communicators. In particular, we want to call mpi_init ourselves, do
some communicator splitting, and dedicate a subset of our processors to
doing calculations with openfoam. So instead of letting all MPI calls be
hidden from us, we want to start MPI ourselves and then pass in a
communicator (*not* MPI_COMM_WORLD) to OpenFoam. Can this be done?

Thanks

Regards

Vishal

Have a look at $FOAM_SRC/Pstream/mpi . To my knowledge this is the only core part of OF that calls MPI directly. I guess you'd only have to write your special Pstream-implementation


All times are GMT -4. The time now is 05:43.