mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added error message if ACMI non-overlap patch is defined prior to ACMI patch
This commit is contained in:
@ -342,6 +342,18 @@ Foam::label Foam::cyclicACMIPolyPatch::nonOverlapPatchID() const
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nonOverlapPatchID_ < index())
|
||||||
|
{
|
||||||
|
FatalErrorIn("cyclicPolyAMIPatch::neighbPatchID() const")
|
||||||
|
<< "Boundary ordering error: " << type()
|
||||||
|
<< " patch must be defined prior to its non-overlapping patch"
|
||||||
|
<< nl
|
||||||
|
<< type() << " patch: " << name() << ", ID:" << index() << nl
|
||||||
|
<< "Non-overlap patch: " << nonOverlapPatchName_
|
||||||
|
<< ", ID:" << nonOverlapPatchID_ << nl
|
||||||
|
<< exit(FatalError);
|
||||||
|
}
|
||||||
|
|
||||||
const polyPatch& noPp = this->boundaryMesh()[nonOverlapPatchID_];
|
const polyPatch& noPp = this->boundaryMesh()[nonOverlapPatchID_];
|
||||||
|
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user