From 93a0172f038407709263c07be637f79ca2a374a5 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 14 Apr 2010 15:47:39 +0100 Subject: [PATCH 1/2] BUG: incorrect statistics in parallel. Also removed sign of magSf. --- .../field/fieldValues/cellSource/cellSource.C | 10 +++--- .../field/fieldValues/cellSource/cellSource.H | 3 ++ .../field/fieldValues/faceSource/faceSource.C | 31 +++++++++-------- .../field/fieldValues/faceSource/faceSource.H | 25 ++++++++++---- .../fieldValues/faceSource/faceSourceI.H | 4 +-- .../faceSource/faceSourceTemplates.C | 33 ++++++++++++++----- 6 files changed, 73 insertions(+), 33 deletions(-) diff --git a/src/postProcessing/functionObjects/field/fieldValues/cellSource/cellSource.C b/src/postProcessing/functionObjects/field/fieldValues/cellSource/cellSource.C index 9d65cefc57..97cd9393bd 100644 --- a/src/postProcessing/functionObjects/field/fieldValues/cellSource/cellSource.C +++ b/src/postProcessing/functionObjects/field/fieldValues/cellSource/cellSource.C @@ -80,10 +80,11 @@ void Foam::fieldValues::cellSource::setCellZoneCells() } cellId_.setSize(count); + nCells_ = returnReduce(cellId_.size(), sumOp