mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: plane: improved error message
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user