Skip to content

Commit

Permalink
bug fix in the giuh ordinates reader.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkhattak committed Sep 13, 2024
1 parent c538a3a commit 1f8915e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/lgar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
Expand Down
2 changes: 1 addition & 1 deletion tests/configs/config_lasam_synth_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/configs/config_lasam_synth_2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1f8915e

Please sign in to comment.