From 1f8915eed9bb8559411c70198ad9f0e91b84d689 Mon Sep 17 00:00:00 2001 From: Ahmad Jan Date: Fri, 13 Sep 2024 10:05:09 -0400 Subject: [PATCH] bug fix in the giuh ordinates reader. --- src/lgar.cxx | 6 ------ tests/configs/config_lasam_synth_1.txt | 2 +- tests/configs/config_lasam_synth_2.txt | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/lgar.cxx b/src/lgar.cxx index 8d85add..4a09fd0 100755 --- a/src/lgar.cxx +++ b/src/lgar.cxx @@ -787,12 +787,6 @@ ReadVectorData(string key) if (z1.find(delimiter) == string::npos) { double v = stod(z1); - if (v == 0.0) { - stringstream errMsg; - errMsg << "soil_z (depth of soil reservior) should be greater than zero. It it set to "<< v << " in the config file "<< "\n"; - throw runtime_error(errMsg.str()); - } - value.push_back(v); } diff --git a/tests/configs/config_lasam_synth_1.txt b/tests/configs/config_lasam_synth_1.txt index 761d5c0..c31f29f 100644 --- a/tests/configs/config_lasam_synth_1.txt +++ b/tests/configs/config_lasam_synth_1.txt @@ -10,4 +10,4 @@ layer_soil_type=13,14,15 max_valid_soil_types=25 wilting_point_psi=15495.0[cm] field_capacity_psi=340.9[cm] -giuh_ordinates=0.0,0.0,0.0,0.0,0.0 +giuh_ordinates=0.0 diff --git a/tests/configs/config_lasam_synth_2.txt b/tests/configs/config_lasam_synth_2.txt index e3b1da8..22ba45b 100644 --- a/tests/configs/config_lasam_synth_2.txt +++ b/tests/configs/config_lasam_synth_2.txt @@ -10,4 +10,4 @@ layer_soil_type=13,14,15 max_valid_soil_types=25 wilting_point_psi=15495.0[cm] field_capacity_psi=340.9[cm] -giuh_ordinates=0.0,0.0,0.0,0.0,0.0 +giuh_ordinates=0.0