Skip to content
Snippets Groups Projects
Commit 116e3eec authored by andy's avatar andy Committed by Andrew Heather
Browse files

ENH: AMI - early exit if no source faces present

parent 1417d523
Branches
Tags
No related merge requests found
......@@ -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 "
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment