MPI barrier inside OpenFoam
Posted March 1, 2018 at 06:34 by kindle
Pstream has two sub directories :
dummy and mpi
dummy and mpi
Quote:
Hello,
when running in parallel, for some reasons I have some actions that have to be done only by the master core and I would like the other partitions to wait until the master has finished.
(I call those action doing:
If (Pstream::master()){ ...} )
I think the solution in a general c++ code using MPI would be to add a line like:
MPI_BARRIER(MPI_COMM_WORLD)
Is there an already implemented function in OF available?
OR,
how could i get acces to the MPI class/function/settings?
Thank you very much,
best regards,
Matteo
when running in parallel, for some reasons I have some actions that have to be done only by the master core and I would like the other partitions to wait until the master has finished.
(I call those action doing:
If (Pstream::master()){ ...} )
I think the solution in a general c++ code using MPI would be to add a line like:
MPI_BARRIER(MPI_COMM_WORLD)
Is there an already implemented function in OF available?
OR,
how could i get acces to the MPI class/function/settings?
Thank you very much,
best regards,
Matteo
Total Comments 0