CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to sync my processors? (https://www.cfd-online.com/Forums/openfoam-programming-development/166605-how-sync-my-processors.html)

sinsni February 13, 2016 06:28

How to sync my processors?
 
Hi to FOAMers!

How do I synchronize my processors in OF? I try to do:
Code:

Pout << "before scatter\n";
label x = 1;
Pstream::scatter(x, Pstream::blocking);
Pout << "after scatter\n";

But master processor just ignores Pstream::blocking flag and goes on:
Code:

[0] before scatter
[0] after scatter

What am I doing wrong? And what is the right way?

Guide me, oh jedi masters!..


All times are GMT -4. The time now is 11:51.