View Issue Details

IDProjectCategoryView StatusLast Update
0001043OpenFOAMBugpublic2014-02-18 08:56
Reporterhannes Assigned Touser2 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSUbuntu LinuxOS Version12.04LTS
Summary0001043: Result of forces-Object on parallel slaves
DescriptionI have an application, where I need the value of the forces and moments on a selected patch on all processors in a parallel run. I used a single call to forcesObject.calcForcesMoments() for this purpose. This worked in OF2.1.x. In OF2.2.x, some binning was introduced and the parallel treatment changed from a single call to "reduce" to a "listCombineGather". Thus the result is only valid on the master processor.
Additional InformationI corrected the behaviour by adding calls to "listCombineScatter". Thus the result is distributed to all slaves.

In src/postProcessing/functionObjects/forces/forces/forces.C :
@@ -843,6 +843,8 @@ void Foam::forces::calcForcesMoment()
 
     Pstream::listCombineGather(force_, plusEqOp<vectorField>());
     Pstream::listCombineGather(moment_, plusEqOp<vectorField>());
+ Pstream::listCombineScatter(force_);
+ Pstream::listCombineScatter(moment_);
 }
 
TagsNo tags attached.

Activities

user2

2014-02-18 08:56

  ~0002828

Updated in version 2.3.x

Issue History

Date Modified Username Field Change
2013-10-11 09:39 hannes New Issue
2014-02-18 08:56 user2 Note Added: 0002828
2014-02-18 08:56 user2 Status new => resolved
2014-02-18 08:56 user2 Fixed in Version => 2.3.x
2014-02-18 08:56 user2 Resolution open => fixed
2014-02-18 08:56 user2 Assigned To => user2