Skip to content
Snippets Groups Projects
Commit c64902ea authored by henry's avatar henry
Browse files

Use gSum rather than sum for parallel running.

parent 8a474e2d
Branches
Tags
No related merge requests found
...@@ -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()));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment