ENH: AMI - early exit if no source faces present
This commit is contained in:
parent
f3c600d134
commit
2771516902
1 changed files with 11 additions and 0 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue