From 4290087658903541fe37305ddf7a738f05937a4f Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Fri, 20 Dec 2013 16:41:30 +0000 Subject: [PATCH] ENH: symmetryPlanePolyPatch: improved error message --- .../constraint/symmetryPlane/symmetryPlanePolyPatch.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/symmetryPlane/symmetryPlanePolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/symmetryPlane/symmetryPlanePolyPatch.C index 5061538f4c6..bd0e06166ae 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); } } -- GitLab