Skip to content

Commit 5b014f4

Browse files
Qianyu Liblesson-07
authored andcommitted
Remove soilWaterInit
1 parent 4793594 commit 5b014f4

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

models/sipnet/R/write.configs.SIPNET.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ write.config.SIPNET <- function(defaults, trait.values, settings, run.id, inputs
557557
}
558558
## soilWater
559559
if ("soilWater" %in% ic.names) {
560-
param[which(param[, 1] == "soilWaterInit"), 2] <- IC$soilWater
560+
param[which(param[, 1] == "soilWFracInit"), 2] <- IC$soilWater/param[which(param[, 1] == "soilWHC"), 2]
561561
}
562562
## soilWFracInit fraction
563563
if ("soilWFrac" %in% ic.names) {

models/sipnet/inst/template.param

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ litterInit 280 0 130 1200 25
44
soilInit 10000 1 3300 19000 3000.000000
55
litterWFracInit 0.5 0 0.0 1.0 0.1
66
soilWFracInit 0.5 1 0.0 1.0 0.1
7-
soilWaterInit 50 100 0 100 10
87
snowInit 1.0 0 0.0 0.0 1.0
98
microbeInit 0.50 0 0.020000 1.000000 0.001000
109
fineRootFrac 0.200000 0 0.000000 1.000000 0.001000

modules/assim.sequential/inst/MultiSite-Exs/SDA/Bartlett.param

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ litterInit 200 0 130 1200 25
44
soilInit 1600 0 1400 1700 1000
55
litterWFracInit 0.5 1 0 1 0.1
66
soilWFracInit 0.5 1 0 1 0.1
7-
soilWaterInit 50 100 0 100 10
87
snowInit 0.0 0 0.0 0.0 1.0
98
microbeInit 0.50 0 0.020000 1.000000 0.001000
109
fineRootFrac 0.200000 0 0.000000 1.000000 0.001000

modules/assim.sequential/inst/MultiSite-Exs/SDA/Create_Multi_settings.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ template <- PEcAn.settings::Settings(list(
122122
#you could add more state variables here
123123
variable = structure(list(variable.name = "AbvGrndWood", unit = "MgC/ha", min_value = 0, max_value = 9999)),
124124
variable = structure(list(variable.name = "LAI", unit = "", min_value = 0, max_value = 9999)),
125+
variable = structure(list(variable.name = "SoilMoist", unit = "cm", min_value = 0, max_value = 100)),
125126
variable = structure(list(variable.name = "SoilMoistFrac", unit = "", min_value = 0, max_value = 1)),#soilWFracInit
126127
variable = structure(list(variable.name = "TotSoilCarb", unit = "kg/m^2", min_value = 0, max_value = 9999))
127128
)),

0 commit comments

Comments
 (0)