Skip to content

Commit

Permalink
Updates to script data-raw/prepare_testInput_objects.R for changes in…
Browse files Browse the repository at this point in the history
… example inputs

- SOILWAT2 example inputs: ESTABL output method is now "AVG" by default (and no longer "OFF")
- however, rSOILWAT2 turns off ESTABL output for its own "example1"
  • Loading branch information
dschlaep committed Jul 10, 2024
1 parent 7b4578b commit e477397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data-raw/prepare_testInput_objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ toggleVegEstab <- function(path, activate = TRUE) {
line <- grep("establishment results", fin, fixed = TRUE)
stopifnot(length(line) == 1, line > 0, line < length(fin))
fin[line] <- sub(
pattern = "OFF",
pattern = "AVG", # "AVG" is the new SOILWAT2 default example since v8.0.0
replacement = if (activate) "AVG" else "OFF",
x = fin[line],
fixed = TRUE
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata/example1/Input/outsetup.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ TIMESTEP dy wk mo yr # must be lowercase
DEEPSWC SUM MO 1 end deep_drain /* deep drainage into lowest layer (cm) */
SOILTEMP AVG MO 1 end temp_soil /* soil temperature from each soil layer (in celsius) */
FROZEN AVG MO 1 end frozen_soil /*Frozen state for each soil layer */
ESTABL AVG YR 1 end estabs /* yearly establishment results */
ESTABL OFF YR 1 end estabs /* yearly establishment results */
CO2EFFECTS AVG DY 1 end co2effects /* vegetation CO2-effect (multiplier) for trees, shrubs, forbs, grasses; WUE CO2-effect (multiplier) for trees, shrubs, forbs, grasses */
BIOMASS AVG DY 1 end vegetation /* vegetation: cover (%) for trees, shrubs, forbs, grasses; biomass (g/m2 as component of total) for total, trees, shrubs, forbs, grasses, and litter; live biomass (g/m2 as component of total) total, trees, shrubs, forbs, grasses; leaf area index LAI (m2/m2) */

0 comments on commit e477397

Please sign in to comment.