diff --git a/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.C b/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.C index aaa70fc13..6361c87f7 100644 --- a/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.C +++ b/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.C @@ -47,7 +47,7 @@ namespace Foam void Foam::overlapFringe::evaluateNonOversetBoundaries ( volScalarField::GeometricBoundaryField& psib -) const +) { // Code practically copy/pasted from GeometricBoundaryField::evaluateCoupled // GeometricBoundaryField should be redesigned to accomodate for such needs @@ -88,8 +88,10 @@ void Foam::overlapFringe::evaluateNonOversetBoundaries } else if (Pstream::defaultComms() == Pstream::scheduled) { + // Get the mesh by looking at first fvPatchField const lduSchedule& patchSchedule = - region().mesh().globalData().patchSchedule(); + psib[0].dimensionedInternalField().mesh().globalData(). + patchSchedule(); forAll(patchSchedule, patchEvalI) { diff --git a/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.H b/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.H index 017d1ddf2..8c4c5bdf1 100644 --- a/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.H +++ b/src/overset/oversetMesh/oversetFringe/overlapFringe/overlapFringe/overlapFringe.H @@ -148,10 +148,10 @@ public: //- Helper function used to evaluate coupled boundaries, excluding // overset patch - void evaluateNonOversetBoundaries + static void evaluateNonOversetBoundaries ( volScalarField::GeometricBoundaryField& psib - ) const; + ); // Constructors