From 1a54a0c81b527d1c1086d24b40cae7f068e9f102 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 22 Sep 2011 22:00:29 +0100 Subject: [PATCH] ENH: polyBoundaryMesh: improved error message --- .../meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C index a520550c3f..94a1597d96 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C @@ -514,7 +514,8 @@ Foam::label Foam::polyBoundaryMesh::whichPatch(const label faceIndex) const FatalErrorIn ( "polyBoundaryMesh::whichPatch(const label faceIndex) const" - ) << "given label greater than the number of geometric faces" + ) << "given label " << faceIndex + << " greater than the number of geometric faces " << mesh().nFaces() << abort(FatalError); }