From 7c0386fcf560d7f06fcb95753837e8bfa7e9a48b Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 4 Feb 2010 13:50:05 +0000 Subject: [PATCH] ENH: Field sources - added warning msg if seed point is not found - also minor code style tweaks --- .../TimeActivatedExplicitSource.C | 13 ++++++++++++- .../TimeActivatedExplicitSource.H | 2 +- .../TimeActivatedExplicitSourceIO.C | 6 +++--- .../TimeActivatedExplicitSourceList.C | 4 ++-- .../TimeActivatedExplicitSourceList.H | 2 +- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.C b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.C index 351d49594c..1552b8f8ab 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.C +++ b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.C @@ -220,6 +220,8 @@ void Foam::TimeActivatedExplicitSource::setCellSet() { case smPoints: { + Info<< indent << "- selecting cells using points" << endl; + labelHashSet cellOwners; forAll(points_, i) { @@ -228,7 +230,16 @@ void Foam::TimeActivatedExplicitSource::setCellSet() { cellOwners.insert(cellI); } + + label globalCellI = returnReduce(cellI, maxOp