Commit c64902ea authored by henry's avatar henry
Browse files

Use gSum rather than sum for parallel running.

parent 8a474e2d
...@@ -104,7 +104,7 @@ void pressureInletUniformVelocityFvPatchVectorField::updateCoeffs() ...@@ -104,7 +104,7 @@ void pressureInletUniformVelocityFvPatchVectorField::updateCoeffs()
pressureInletVelocityFvPatchVectorField::updateCoeffs(); pressureInletVelocityFvPatchVectorField::updateCoeffs();
operator==(patch().nf()*sum(patch().Sf() & *this)/sum(patch().magSf())); operator==(patch().nf()*gSum(patch().Sf() & *this)/gSum(patch().magSf()));
} }
...@@ -115,7 +115,7 @@ void pressureInletUniformVelocityFvPatchVectorField::operator= ...@@ -115,7 +115,7 @@ void pressureInletUniformVelocityFvPatchVectorField::operator=
const fvPatchField<vector>& pvf const fvPatchField<vector>& pvf
) )
{ {
operator==(patch().nf()*sum(patch().Sf() & pvf)/sum(patch().magSf())); operator==(patch().nf()*gSum(patch().Sf() & pvf)/gSum(patch().magSf()));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment