mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: AMI - early exit if no source faces present
This commit is contained in:
@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user