diff --git a/src/finiteVolume/fvMesh/fvPatches/constraint/overlapGgi/overlapGgiFvPatch.C b/src/finiteVolume/fvMesh/fvPatches/constraint/overlapGgi/overlapGgiFvPatch.C index 610428648..69b0fc914 100644 --- a/src/finiteVolume/fvMesh/fvPatches/constraint/overlapGgi/overlapGgiFvPatch.C +++ b/src/finiteVolume/fvMesh/fvPatches/constraint/overlapGgi/overlapGgiFvPatch.C @@ -107,7 +107,9 @@ void Foam::overlapGgiFvPatch::makeCorrVecs(vectorField& cv) const const Foam::overlapGgiFvPatch& Foam::overlapGgiFvPatch::shadow() const { - const fvPatch& p = this->boundaryMesh()[overlapGgiPolyPatch_.shadowIndex()]; + const fvPatch& p = + this->boundaryMesh()[overlapGgiPolyPatch_.shadowIndex()]; + return refCast(p); } @@ -128,7 +130,8 @@ Foam::tmp Foam::overlapGgiFvPatch::delta() const return interpolate ( - shadow().Cn() - overlapGgiPolyPatch_.shadow().reconFaceCellCentres() + shadow().Cn() + - overlapGgiPolyPatch_.shadow().reconFaceCellCentres() ); } }