mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changed sum to gSum for parallel execution.
This commit is contained in:
@ -79,12 +79,12 @@ int main(int argc, char *argv[])
|
||||
Info<< " Reading volScalarField " << fieldName << endl;
|
||||
volScalarField field(fieldHeader, mesh);
|
||||
|
||||
scalar area = sum(mesh.magSf().boundaryField()[patchi]);
|
||||
scalar area = gSum(mesh.magSf().boundaryField()[patchi]);
|
||||
scalar sumField = 0;
|
||||
|
||||
if (area > 0)
|
||||
{
|
||||
sumField = sum
|
||||
sumField = gSum
|
||||
(
|
||||
mesh.magSf().boundaryField()[patchi]
|
||||
* field.boundaryField()[patchi]
|
||||
|
||||
Reference in New Issue
Block a user