diff --git a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.C b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.C index 351d49594cfb659ff37698ff32d3200122c39a5d..1552b8f8ab1fdbed3a489b127dc409370ad2995c 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<Type>::setCellSet() { case smPoints: { + Info<< indent << "- selecting cells using points" << endl; + labelHashSet cellOwners; forAll(points_, i) { @@ -228,7 +230,16 @@ void Foam::TimeActivatedExplicitSource<Type>::setCellSet() { cellOwners.insert(cellI); } + + label globalCellI = returnReduce(cellI, maxOp<label>()); + if (globalCellI < 0) + { + WarningIn("TimeActivatedExplicitSource<Type>::setCellIds()") + << "Unable to find owner cell for point " << points_[i] + << endl; + } } + cellsPtr_.reset(new cellSet(mesh_, "points", cellOwners)); break; @@ -243,7 +254,7 @@ void Foam::TimeActivatedExplicitSource<Type>::setCellSet() } default: { - FatalErrorIn("TimeActivatedExplicitSource::setCellIds()") + FatalErrorIn("TimeActivatedExplicitSource<Type>::setCellIds()") << "Unknown selectionMode " << selectionModeTypeNames_[selectionMode_] << ". Valid selectionMode types are" << selectionModeTypeNames_ diff --git a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.H b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.H index e079122edd33b8b51549ce94feebbbc0fbe55756..9b1bfa6974537073b969fc7a2686ab57ed085cc6 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.H +++ b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSource.H @@ -365,7 +365,7 @@ public: friend Ostream& operator<< <Type> ( Ostream& os, - const TimeActivatedExplicitSource& sp + const TimeActivatedExplicitSource& source ); }; diff --git a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceIO.C b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceIO.C index 98d099e4327068b1e53a11ccc34cc27f41756111..f9ae9120e899306b10de40ea0ae18d52818f5b49 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceIO.C +++ b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceIO.C @@ -70,7 +70,7 @@ void Foam::TimeActivatedExplicitSource<Type>::writeData(Ostream& os) const { FatalErrorIn ( - "TimeActivatedExplicitSource<Type>::writeDict" + "TimeActivatedExplicitSource<Type>::writeData" "(" "Ostream&, " "bool" @@ -91,10 +91,10 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const TimeActivatedExplicitSource<Type>& sp + const TimeActivatedExplicitSource<Type>& source ) { - sp.writeData(os); + source.writeData(os); return os; } diff --git a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.C b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.C index bb565dc32e4672a7bc363c8b84808bfe78f3bee2..64ff584d28065f7b868e11a12c5c70ab01010093 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.C +++ b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.C @@ -212,10 +212,10 @@ template<class Type> Foam::Ostream& Foam::operator<< ( Ostream& os, - const TimeActivatedExplicitSourceList<Type>& spl + const TimeActivatedExplicitSourceList<Type>& sources ) { - spl.writeData(os); + sources.writeData(os); return os; } diff --git a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H index 6309771b6a45a129c8c8b487556d080fadce72b7..502dfb01eea6384fa05b658b2ff6f818947715bd 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H +++ b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H @@ -150,7 +150,7 @@ public: friend Ostream& operator<< <Type> ( Ostream& os, - const TimeActivatedExplicitSourceList& sp + const TimeActivatedExplicitSourceList& sources ); };