View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001043 | OpenFOAM | Bug | public | 2013-10-11 09:39 | 2014-02-18 08:56 |
Reporter | hannes | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86_64 | OS | Ubuntu Linux | OS Version | 12.04LTS |
Summary | 0001043: Result of forces-Object on parallel slaves | ||||
Description | I 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 Information | I 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_); } | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-10-11 09:39 | hannes | New Issue | |
2014-02-18 08:56 |
|
Note Added: 0002828 | |
2014-02-18 08:56 |
|
Status | new => resolved |
2014-02-18 08:56 |
|
Fixed in Version | => 2.3.x |
2014-02-18 08:56 |
|
Resolution | open => fixed |
2014-02-18 08:56 |
|
Assigned To | => user2 |