You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SOILWAT2 function SW_VPD_init is called by _begin_year which in turn is called by SW_CTL_run_current_year. That the function _begin_year calls SW_VPD_init is "new" since SOILWAT2 incorporated CO2-effects (commit DrylandEcology/SOILWAT2@1755c28 merged into v3.5.0).
Thus, the STEPWAT2 function _sxw_sw_setup no longer needs to call SW_VPD_init because it will be called anyhow in due time by SOILWAT2.
--> suggested fix: remove the call to SW_VPD_init from function _sxw_sw_setup
This should make a run ever so slightly faster as we remove one of two yearly calls to SW_VPD_init which loops seven times through each day of the year for each of the four SOILWAT2 vegetation types...
The text was updated successfully, but these errors were encountered:
…D_init`
- close#335
The `SOILWAT2` function `SW_VPD_init` is called by `_begin_year` which in turn is called by `SW_CTL_run_current_year`. That the function `_begin_year` calls `SW_VPD_init` is "new" since `SOILWAT2` incorporated CO2-effects (commit DrylandEcology/SOILWAT2@1755c28 merged into [v3.5.0](https://github.com/DrylandEcology/SOILWAT2/releases/tag/v3.5.0)).
Thus, the `STEPWAT2` function `_sxw_sw_setup` no longer needs to call `SW_VPD_init` because it will be called anyhow in due time by `SOILWAT2`.
- this commit does not change testing output
The
SOILWAT2
functionSW_VPD_init
is called by_begin_year
which in turn is called bySW_CTL_run_current_year
. That the function_begin_year
callsSW_VPD_init
is "new" sinceSOILWAT2
incorporated CO2-effects (commit DrylandEcology/SOILWAT2@1755c28 merged into v3.5.0).Thus, the
STEPWAT2
function_sxw_sw_setup
no longer needs to callSW_VPD_init
because it will be called anyhow in due time bySOILWAT2
.--> suggested fix: remove the call to
SW_VPD_init
from function_sxw_sw_setup
This should make a run ever so slightly faster as we remove one of two yearly calls to
SW_VPD_init
which loops seven times through each day of the year for each of the fourSOILWAT2
vegetation types...The text was updated successfully, but these errors were encountered: