mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
input checking
This commit is contained in:
@ -170,7 +170,20 @@ Foam::searchableBox::searchableBox
|
||||
:
|
||||
searchableSurface(io),
|
||||
treeBoundBox(bb)
|
||||
{}
|
||||
{
|
||||
if (!contains(midpoint()))
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"Foam::searchableBox::searchableBox\n"
|
||||
"(\n"
|
||||
" const IOobject& io,\n"
|
||||
" const treeBoundBox& bb\n"
|
||||
")\n"
|
||||
) << "Illegal bounding box specification : "
|
||||
<< static_cast<const treeBoundBox>(*this) << exit(FatalError);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Foam::searchableBox::searchableBox
|
||||
@ -181,7 +194,20 @@ Foam::searchableBox::searchableBox
|
||||
:
|
||||
searchableSurface(io),
|
||||
treeBoundBox(dict.lookup("min"), dict.lookup("max"))
|
||||
{}
|
||||
{
|
||||
if (!contains(midpoint()))
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"Foam::searchableBox::searchableBox\n"
|
||||
"(\n"
|
||||
" const IOobject& io,\n"
|
||||
" const treeBoundBox& bb\n"
|
||||
")\n"
|
||||
) << "Illegal bounding box specification : "
|
||||
<< static_cast<const treeBoundBox>(*this) << exit(FatalError);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user