Skip to content

Commit

Permalink
updated a bug where ponded_depth_max and field_capacity were swapped …
Browse files Browse the repository at this point in the history
…in GetValuePtr
  • Loading branch information
Peter La Follette authored and Peter La Follette committed Apr 12, 2024
1 parent a846fca commit 17f6441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bmi_lgar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,9 @@ GetValuePtr (std::string name)
else if (name.compare("hydraulic_conductivity") == 0)
return (void*)this->state->lgar_calib_params.Ksat;
else if (name.compare("ponded_depth_max") == 0)
return (void*)&this->state->lgar_calib_params.field_capacity_psi;
else if (name.compare("field_capacity") == 0)
return (void*)&this->state->lgar_calib_params.ponded_depth_max;
else if (name.compare("field_capacity") == 0)
return (void*)&this->state->lgar_calib_params.field_capacity_psi;
else {
std::stringstream errMsg;
errMsg << "variable "<< name << " does not exist";
Expand Down

0 comments on commit 17f6441

Please sign in to comment.