Skip to content

Read opt_SMDbare in write.config.RothC - #4222

Draft
madhavzanwar wants to merge 3 commits into
PecanProject:developfrom
madhavzanwar:GH-4217-rothc-opt-smdbare
Draft

madhavzanwar wants to merge 3 commits into
PecanProject:developfrom
madhavzanwar:GH-4217-rothc-opt-smdbare

Conversation

@madhavzanwar

Copy link
Copy Markdown
Contributor

Fixes #4217

What

write.config.RothC() read the bare-soil option from opt_RMmoist, so
<opt_SMDbare> was silently ignored and @OPT_SMDBARE@ always equalled the
opt_RMmoist value. It now reads settings$model$opt_SMDbare, as in the book
page (rothc.Rmd) and inst/workflow_example/template.xml.

Adds a test for the two flags, plus NEWS and CHANGELOG entries.

Not changed

Testing

The new test fails on develop (two failed expectations) and passes with the
fix. The RothC test suite passes (8 tests).

The bare-soil option was read from opt_RMmoist, so opt_SMDbare was ignored.

Fixes PecanProject#4217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

write.config.RothC() ignores opt_SMDbare (reads opt_RMmoist for both options)

1 participant