From 05ecf37eee24f6454048b7bd4efd878efe19e815 Mon Sep 17 00:00:00 2001 From: HRN Date: Mon, 24 Feb 2025 14:40:29 +0330 Subject: [PATCH] box now checks for min and max point consistency --- src/phasicFlow/structuredData/box/box.cpp | 17 ++++++++++++++++- src/phasicFlow/structuredData/box/box.hpp | 4 ++-- 2 files changed, 18 insertions(+), 3 deletions(-) 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 "<