diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/symmetryPlane/symmetryPlanePolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/symmetryPlane/symmetryPlanePolyPatch.C index 5061538f4c64c5a63955fd2133167c4c2ffe8ebe..bd0e06166ae9514722f12fcff6d69eb4908929fa 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/symmetryPlane/symmetryPlanePolyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/symmetryPlane/symmetryPlanePolyPatch.C @@ -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); } }