-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SOILWAT2 with new SWRC functionality
- SOILWAT2 has now multiple soil water release curves (SWRC) implemented - updated SOILWAT2 submodule on branch release/devel_v7.0.0 to commit a6c367aef07b746a43b459067ee0ef0139f9f60b "Merge pull request #322 from DrylandEcology/feature_swrc" -> new SOILWAT2 inputs include: swrc_name (to select a SWRC), ptf_name (to select a pedotransfer function if used), has_swrcp (logical to determine if SWRC parameters are used from new input file or calculated at run-time with selected PTF), and swrc_params (per soil layer parameters of the selected SWRC if used) -> default values (swrc_name = Campbell1974, ptf_name = Cosby1984AndOthers, has_swrcp = FALSE) re-created previous behavior (except for a small fix for when soil moisture values occur above field capacity and below saturation levels)
- Loading branch information
Showing
4 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
Submodule sw_src
updated
36 files
+3 −0 | .LSAN_suppr.txt | |
+27 −2 | NEWS.md | |
+12 −6 | SW_Carbon.c | |
+12 −2 | SW_Control.c | |
+13 −6 | SW_Defines.h | |
+10 −10 | SW_Files.c | |
+18 −4 | SW_Files.h | |
+13 −7 | SW_Flow_lib.c | |
+79 −18 | SW_Markov.c | |
+1 −1 | SW_Model.c | |
+52 −25 | SW_Output.c | |
+2 −1 | SW_Output.h | |
+64 −60 | SW_Output_get_functions.c | |
+25 −21 | SW_Output_outtext.c | |
+1 −1 | SW_Output_outtext.h | |
+1,353 −356 | SW_Site.c | |
+192 −12 | SW_Site.h | |
+1 −1 | SW_Sky.c | |
+778 −136 | SW_SoilWater.c | |
+59 −3 | SW_SoilWater.h | |
+50 −36 | SW_VegEstab.c | |
+70 −46 | SW_VegProd.c | |
+0 −5 | SW_VegProd.h | |
+15 −15 | SW_Weather.c | |
+119 −12 | doc/SOILWAT2.bib | |
+7 −0 | doc/additional_pages/SOILWAT2_Inputs.md | |
+1 −1 | generic.h | |
+0 −10 | test/test_SW_Flow_Lib.cc | |
+385 −48 | test/test_SW_Site.cc | |
+289 −179 | test/test_SW_SoilWater.cc | |
+68 −0 | test/test_WaterBalance.cc | |
+29 −3 | testing/Input/siteparam.in | |
+39 −0 | testing/Input/swrc_params.in | |
+26 −0 | testing/Input/swrc_params_FXW.in | |
+24 −0 | testing/Input/swrc_params_vanGenuchten1980.in | |
+1 −0 | testing/files.in |
This file contains 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
39 changes: 39 additions & 0 deletions
39
testing.sagebrush.master/Stepwat_Inputs/Input/sxw/Input/swrc_params.in
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#------ Input for Soil Water Retention Curves (by soil layer) ------ | ||
|
||
# A table with up to `MAX_LAYERS` rows (soil layers) and 6 columns: | ||
# - the soil layers must match `soils.in` | ||
# - the interpretation of columns (SWRC parameters) depends on the | ||
# selected SWRC (see `siteparam.in`) | ||
# - unused columns are ignored (if selected SWRC uses fewer than 6 parameters) | ||
|
||
# swrc = "Campbell1974" (default values below, from "Cosby1984") | ||
# * param1 = air-entry suction [cm] | ||
# * param2 = saturated volumetric water content for the matric component [cm/cm] | ||
# * param3 = b, slope of the linear log-log retention curve [-] | ||
# * param4 = saturated hydraulic conductivity [cm/day] | ||
|
||
# swrc = "vanGenuchten1980" | ||
# * param1 = residual volumetric water content for the matric component [cm/cm] | ||
# * param2 = saturated volumetric water content for the matric component [cm/cm] | ||
# * param3 = alpha, related to the inverse of air entry suction [cm-1] | ||
# * param4 = n, measure of the pore-size distribution [-] | ||
# * param5 = saturated hydraulic conductivity [cm/day] | ||
|
||
# swrc = "FXW" | ||
# * param1 = saturated volumetric water content of the matric component [cm/cm] | ||
# * param2 = alpha, shape parameter [cm-1] | ||
# * param3 = n, shape parameter [-] | ||
# * param4 = m, shape parameter [-] | ||
# * param5 = saturated hydraulic conductivity [cm / day] | ||
# * param6 = L, tortuosity/connectivity parameter [-] | ||
|
||
|
||
# param1 param2 param3 param4 param5 param6 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 | ||
0.0000 0.00000 0.0000 0.000000 0.0000 0.0000 |
This file contains 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