CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

parallelization and variable reset

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2018, 12:16
Default parallelization and variable reset
Joaquín Neira
Join Date: Oct 2017
Posts: 38
Rep Power: 8
cojua8 is on a distinguished road

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

scalarList dtList_;
vectorList UrList_;

in the KinematicCloud.C i added the following:


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
cojua8 is offline   Reply With Quote


lagrangian, lists, lpt, parallelize

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[openSmoke] OpenFoam LaminarSmoke parallelization error nashiong OpenFOAM Community Contributions 10 February 17, 2015 14:31

All times are GMT -4. The time now is 07:08.