diff --git a/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C b/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C index c1a2b66f1ebc447bfa45f9dbebed2fe54fade000..85590cc5e27b74172509fe2e4a205c3e4062e1da 100644 --- a/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C +++ b/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -96,7 +96,8 @@ void Foam::plane::calcPntAndVec " const point&,\n" " const point&\n" ")\n" - ) << "Bad points." << abort(FatalError); + ) << "Bad points:" << point1 << ' ' << point2 << ' ' << point3 + << abort(FatalError); } unitVector_ = line12 ^ line23; @@ -112,7 +113,8 @@ void Foam::plane::calcPntAndVec " const point&,\n" " const point&\n" ")\n" - ) << "Plane normal defined with zero length" + ) << "Plane normal defined with zero length" << nl + << "Bad points:" << point1 << ' ' << point2 << ' ' << point3 << abort(FatalError); } @@ -137,7 +139,7 @@ Foam::plane::plane(const vector& normalVector) else { FatalErrorIn("plane::plane(const vector&)") - << "plane normal has zero length" + << "plane normal has zero length. basePoint:" << basePoint_ << abort(FatalError); } } @@ -158,7 +160,7 @@ Foam::plane::plane(const point& basePoint, const vector& normalVector) else { FatalErrorIn("plane::plane(const point&, const vector&)") - << "plane normal has zero length" + << "plane normal has zero length. basePoint:" << basePoint_ << abort(FatalError); } } @@ -228,8 +230,7 @@ Foam::plane::plane(const dictionary& dict) ( "plane::plane(const dictionary&)", dict - ) - << "Invalid plane type: " << planeType + ) << "Invalid plane type: " << planeType << abort(FatalIOError); } } @@ -250,7 +251,7 @@ Foam::plane::plane(Istream& is) else { FatalErrorIn("plane::plane(Istream& is)") - << "plane normal has zero length" + << "plane normal has zero length. basePoint:" << basePoint_ << abort(FatalError); } }