CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   lagrangian particles mpirun (

catapult November 6, 2012 10:58

lagrangian particles mpirun
Hi everyone,

I created a IO function in a customised library derived from solidParticle, say this one :

void Foam::myParticle::writeDeposition(const Cloud<myParticle>& c)

When I run the simulation on several processors i call the function like this:
if (runTime.write())
Info << endl;

but then it writes particle data for lagrangian elements in one processor only...

How can I loop over all particles in all processors ?

thanks for the answer.

All times are GMT -4. The time now is 19:24.