diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index 2440c1f84285642e3fd46e02ddd2d03bccb2b4d0..ea79e0699ccc5000f057aae31917e2b298d750ad 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -805,6 +805,17 @@ void Foam::AMIInterpolation<SourcePatch, TargetPatch>::update label srcTotalSize = returnReduce(srcPatch.size(), sumOp<label>()); label tgtTotalSize = returnReduce(tgtPatch.size(), sumOp<label>()); + if (srcTotalSize == 0) + { + if (debug) + { + Info<< "AMI: no source faces present - no addressing constructed" + << endl; + } + + return; + } + Info<< indent << "AMI: Creating addressing and weights between " << srcTotalSize << " source faces and "