diff --git a/src/phasicFlow/structuredData/box/box.cpp b/src/phasicFlow/structuredData/box/box.cpp index 7f16f754..c374c926 100644 --- a/src/phasicFlow/structuredData/box/box.cpp +++ b/src/phasicFlow/structuredData/box/box.cpp @@ -36,7 +36,15 @@ pFlow::box::box ( dict.getVal("max") ) -{} +{ + if( !(min_ < max_)) + { + fatalErrorInFunction<< + "the corenter points of box are not set correctly"<< + " (min point is greater than max point). In dictionary "<< dict.globalName()<("min", min_)) return false; if(!is.nextData("max", max_)) return false; + if(!(min_ < max_)) + { + ioErrorInFile(is.name(), is.lineNumber())<< + "the corenter points of box are not set correctly"<< + " (min point is greater than max point). In dictionary "<