mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: symmetryPlanePolyPatch: improved error message
This commit is contained in:
@ -25,6 +25,7 @@ License
|
||||
|
||||
#include "symmetryPlanePolyPatch.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "symmetryPolyPatch.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -131,7 +132,11 @@ const Foam::vector& Foam::symmetryPlanePolyPatch::n() const
|
||||
if (magSqr(n_ - nf[facei]) > SMALL)
|
||||
{
|
||||
FatalErrorIn("symmetryPlanePolyPatch::n()")
|
||||
<< "Symmetry plane '" << name() << "' is not planar"
|
||||
<< "Symmetry plane '" << name() << "' is not planar."
|
||||
<< endl
|
||||
<< " Either split the patch into planar parts"
|
||||
<< " or use the " << symmetryPolyPatch::typeName
|
||||
<< " patch type"
|
||||
<< exit(FatalError);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user