CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   parallelization and variable reset (https://www.cfd-online.com/Forums/openfoam/200692-parallelization-variable-reset.html)

cojua8 April 10, 2018 12:16

parallelization and variable reset
 
Hello,

I'm working with KinematicCloud and I added two new protected variables:

scalarList dtList_;
vectorList UrList_;

in the KinematicCloud.C i added the following:

p.dtList().append(dt);

And it works well, for each step it add dt to the last element of the list (yes, the list keeps growing and growing).

But it works well only when running on a single processor. When I run it with more processors, the list resets to size 0 when changing from one processor to the other.

I don't know how to change this behaviour, so all help is welcome

Also, I want to know if there is any possible way to set a fixed size for the List.

best regards


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