Commit 7d833640 authored by mattijs's avatar mattijs
Browse files

STYLE: plane: improved error message

parent 2b24e28e
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment