CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

MPI barrier inside OpenFoam

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

MPI barrier inside OpenFoam

Posted March 1, 2018 at 06:34 by kindle

Pstream has two sub directories :
dummy and mpi

Quote:
Originally Posted by matteoL View Post
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
Posted in programming
Views 1884 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 18:40.