Repository navigation
Read opt_SMDbare in write.config.RothC - #4222
Draft
madhavzanwar wants to merge 3 commits into
Draft
madhavzanwar wants to merge 3 commits into
madhavzanwar wants to merge 3 commits into
Conversation
The bare-soil option was read from opt_RMmoist, so opt_SMDbare was ignored. Fixes PecanProject#4217
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4217
What
write.config.RothC()read the bare-soil option fromopt_RMmoist, so<opt_SMDbare>was silently ignored and@OPT_SMDBARE@always equalled theopt_RMmoistvalue. It now readssettings$model$opt_SMDbare, as in the bookpage (
rothc.Rmd) andinst/workflow_example/template.xml.Adds a test for the two flags, plus NEWS and CHANGELOG entries.
Not changed
settings$model, as before and as in theexample template. Moving them to
settings$model$optionsis a separatechange (see @infotroph's comment on write.config.RothC() ignores opt_SMDbare (reads opt_RMmoist for both options) #4217), so I have not touched that here.
model_depth_cmis not passed on toread_soil_physics(). There is aTODO: FIXMEabout soil depth there already.Testing
The new test fails on
develop(two failed expectations) and passes with thefix. The RothC test suite passes (8 tests).