diff --git a/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C index 05dc64449d0837ae5befc7158f5b156ae76c07da..50ec5c1b0ad6971cf856542271063dce507aab5a 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C @@ -60,16 +60,25 @@ void Foam::cyclicACMIPolyPatch::resetAMI if (boundaryMesh().mesh().hasCellCentres()) { - WarningInFunction - << "The mesh already has cellCentres calculated when" - << " resetting ACMI " << name() << "." << endl - << "This is a problem since ACMI adapts the face areas" - << " (to close cells) so this has" << endl - << "to be done before cell centre calculation." << endl - << "This can happen if e.g. the cyclicACMI is after" - << " any processor patches in the boundary." << endl - << "Continuing with potential for incorrect geometry" - << " calculation and mass loss" << endl; + if (debug) + { + Pout<< "cyclicACMIPolyPatch::resetAMI : clearing cellCentres" + << " for " << name() << " and " << nonOverlapPatch.name() + << endl; + } + + //WarningInFunction + // << "The mesh already has cellCentres calculated when" + // << " resetting ACMI " << name() << "." << endl + // << "This is a problem since ACMI adapts the face areas" + // << " (to close cells) so this has" << endl + // << "to be done before cell centre calculation." << endl + // << "This can happen if e.g. the cyclicACMI is after" + // << " any processor patches in the boundary." << endl; + const_cast<polyMesh&> + ( + boundaryMesh().mesh() + ).primitiveMesh::clearGeom(); }