From 1f2b5e4e0ffe273202bd847db313acbce3e0dfee Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 4 Feb 2009 23:14:39 +0000 Subject: [PATCH] Corrected the averaging for the case where the patch is decomposed for parallel running. See http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10974 --- .../pressureInletUniformVelocityFvPatchVectorField.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C index fb2787c..1c268bc 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C @@ -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())); } -- 2.11.4.GIT