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
No related merge requests found
......@@ -104,7 +104,7 @@ void pressureInletUniformVelocityFvPatchVectorField::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=
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment