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

parallelization and variable reset

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 10, 2018, 13:16
Default parallelization and variable reset
  #1
Member
 
Joaquín Neira
Join Date: Oct 2017
Posts: 31
Rep Power: 3
cojua8 is on a distinguished road
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
cojua8 is offline   Reply With Quote

Reply

Tags
lagrangian, lists, lpt, parallelize

Thread Tools
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 On
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 15:31


All times are GMT -4. The time now is 03:57.