Skip to content

Commit

Permalink
Update SOILWAT2 input testing files to reflect CO2-enabled code
Browse files Browse the repository at this point in the history
- close DrylandEcology/SOILWAT2#99

- CO2 flags are turned off

- this commit compiles and executes the testing example
  • Loading branch information
dschlaep committed Dec 7, 2017
1 parent 8ea88b8 commit 47a29c7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plant production data file for SOILWAT
# Location:
# Location:

# ---- Composition of vegetation type components (0-1; must add up to 1)
# Grasses Shrubs Trees Forbs Bare Ground
Expand All @@ -22,7 +22,7 @@
29.5 5.0 5.0 29.5 # yinflec
85. 100. 3000. 85. # range
0.002 0.003 0.00008 0.002 # slope
0. 50. 1200. 0. # if > 0 then constant canopy height (cm)
0. 50. 1200. 0. # if > 0 then constant canopy height (cm)


# --- Vegetation interception parameters for equation: intercepted rain = (a + b*veg) + (c+d*veg) * ppt; Grasses+Shrubs: veg=vegcov, Trees: veg=LAI
Expand Down Expand Up @@ -51,7 +51,7 @@
999.0 999.0 2099.0 999.0 #


# --- Shade effects on transpiration based on live and dead biomass
# --- Shade effects on transpiration based on live and dead biomass
# Grasses Shrubs Trees Forbs
0.3 0.3 0.3 0.3 # shade scale
150. 150. 150. 150. # shade maximal dead biomass
Expand All @@ -74,6 +74,16 @@
-3.5 -3.9 -2.0 -2.0


# ---- CO2 Coefficients: multiplier = Coeff1 * x^Coeff2
# Coefficients assume that monthly biomass inputs reflect values for conditions at
# 360 ppm CO2, i.e., multiplier = 1 for x = 360 ppm CO2
# Grasses Shrubs Trees Forbs
0.1319 0.1319 0.1319 0.1319 # Biomass Coeff1
0.3442 0.3442 0.3442 0.3442 # Biomass Coeff2
25.158 25.158 25.158 25.158 # WUE Coeff1
-0.548 -0.548 -0.548 -0.548 # WUE Coeff2


# Grasslands component:
# -------------- Monthly production values ------------
# Litter - dead leafy material on the ground (g/m^2 ).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ---- SWC limits ----
-1.0 # swc_min : cm/cm if 0 - <1.0, -bars if >= 1.0.; if < 0. then estimate residual water content for each layer
15.0 # swc_init: cm/cm if < 1.0, -bars if >= 1.0.
15.0 # swc_wet : cm/cm if < 1.0, -bars if >= 1.0.
15.0 # swc_init: cm/cm if < 1.0, -bars if >= 1.0.
15.0 # swc_wet : cm/cm if < 1.0, -bars if >= 1.0.

# ---- Model flags and coefficients ----
0 # reset (1/0): reset/don't reset swc each new year
Expand All @@ -27,10 +27,10 @@
# These control the tangent function (tanfunc) which affects the amount of soil
# water extractable by evaporation and transpiration.
# These constants aren't documented by the ELM doc.
45. # rate shift (x value of inflection point). lower value shifts curve
45. # rate shift (x value of inflection point). lower value shifts curve
# leftward, meaning less water lost to evap at a given swp. effectively
# shortens/extends high rate.
.1 # rate slope: lower value (eg .01) straightens S shape meaning more gradual
.1 # rate slope: lower value (eg .01) straightens S shape meaning more gradual
# reduction effect; higher value (.5) makes abrupt transition
.25 # inflection point (y-value of inflection point)
0.5 # range: diff btw upper and lower rates at the limits
Expand Down Expand Up @@ -62,10 +62,18 @@
990. # max depth for the soil_temperature function equation, default is 180. this number should be evenly divisible by deltaX
0 # flag, 1 to calculate soil_temperature, 0 to not calculate soil_temperature

# ---- CO2 Settings ----
# Use biomass multiplier
0
# Use water-usage efficiency multiplier
0
# Scenario
RCP85


# ---- Transpiration regions ----
# ndx : 1=shallow, 2=medium, 3=deep, 4=very deep
# layer: deepest layer number of the region.
# layer: deepest layer number of the region.
# Grasses Shrubs Trees Forbs
# Layers are defined in soils.in.
# ndx layer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# List of input files for SOILWAT v32
# This is the first file read. Simulation information =
# This is the first file read. Simulation information =

# Model
Input/years.in # years for model operation
Expand All @@ -20,6 +20,9 @@ Input/randomdata/cloud_v20.in # general atmospheric params
Input/sbe_prod_v31.in # productivity values
Input/estab.in # plant establishment start file

#CO2
Input/carbon.in

#SWC measurements
Input/swcsetup.in # params for handling measured swc

Expand Down

0 comments on commit 47a29c7

Please sign in to comment.