We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9c32e commit 0e4677dCopy full SHA for 0e4677d
1 file changed
src/Command.cpp
@@ -2007,6 +2007,18 @@ namespace libforefire
2007
{
2008
double newPerimRes = getFloat("perimeterResolution", arg);
2009
double newSpatialInc = getFloat("spatialIncrement", arg);
2010
+
2011
+ bool valid = true;
2012
2013
+ if (newPerimRes != FLOATERROR && newPerimRes <= 0.0) {
2014
+ cout << "Error: perimeterResolution must be greater than 0." << endl;
2015
+ valid = false;
2016
+ }
2017
+ if (newSpatialInc != FLOATERROR && newSpatialInc <= 0.0) {
2018
+ cout << "Error: spatialIncrement must be greater than 0." << endl;
2019
2020
2021
+ if (!valid) return error;
2022
2023
FireDomain* domain = getDomain();
2024
if (domain != nullptr)
0 commit comments