From 756a7a4894e7d9435ea43faeb0c3df9e08c2183a Mon Sep 17 00:00:00 2001 From: AJKhattak-NOAA Date: Mon, 1 Apr 2024 16:45:10 -0400 Subject: [PATCH] Update src/soil_moisture_profile.cxx modified condition to check negative values as well. Co-authored-by: Austin Raney --- src/soil_moisture_profile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soil_moisture_profile.cxx b/src/soil_moisture_profile.cxx index 4c8b19c..b0d1189 100644 --- a/src/soil_moisture_profile.cxx +++ b/src/soil_moisture_profile.cxx @@ -924,7 +924,7 @@ ReadVectorData(string param_name, string param_value) if (z1.find(delimiter) == string::npos) { double v = stod(z1); - if (v == 0.0) { + if (v <= 0.0) { stringstream errMsg; errMsg << "Input provided in the config file for parameter "<< param_name << " is " << v << ". It should be positive."<< "\n"; throw runtime_error(errMsg.str());