-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'soil_layer_def_cleanup'
Soil layer definition clean-up and user-defined option Code clean-up clarifes that there are two types of soil layer definition: the node-based and the thickness-based. User-defined option allows user to specify a soil layer profile in the form of a dzsoi vector (values in meters) in the thickness-based approach. Default nlevsoi for NWP configurations had to change from 5 to 4 for consistency with the new error check described in known bugs below. Other code clean-up removes a couple of sections of repeating code. Resolves #279 Resolves #728
- Loading branch information
Showing
22 changed files
with
449 additions
and
298 deletions.
There are no files selected for viewing
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
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
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
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,37 @@ | ||
""" | ||
Implementation of the CIME SOILSTRUCTUD test. | ||
This is a CLM specific test: | ||
Verifies that a simulation that points to user_nl_clm containing | ||
soil_layerstruct_userdefined_nlevsoi = 4 | ||
soil_layerstruct_userdefined = 0.1d0,0.3d0,0.6d0,1.0d0,1.0d0 | ||
gives bfb same results as one that points to user_nl_clm containing | ||
soil_layerstruct_predefined = '4SL_2m' | ||
""" | ||
|
||
from CIME.SystemTests.system_tests_compare_two import SystemTestsCompareTwo | ||
from CIME.XML.standard_module_setup import * | ||
from CIME.SystemTests.test_utils.user_nl_utils import append_to_user_nl_files | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
class SOILSTRUCTUD(SystemTestsCompareTwo): | ||
|
||
def __init__(self, case): | ||
SystemTestsCompareTwo.__init__(self, case, | ||
separate_builds = False, | ||
run_two_suffix = '4SL_2m', | ||
run_one_description = 'soil_layerstruct_userdefined', | ||
run_two_description = 'soil_layerstruct_predefined') | ||
|
||
def _case_one_setup(self): | ||
append_to_user_nl_files(caseroot = self._get_caseroot(), | ||
component = "clm", | ||
contents = "soil_layerstruct_userdefined_nlevsoi = 4,soil_layerstruct_userdefined = 0.1d0,0.3d0,0.6d0,1.0d0,1.0d0") | ||
|
||
def _case_two_setup(self): | ||
append_to_user_nl_files(caseroot = self._get_caseroot(), | ||
component = "clm", | ||
contents = "soil_layerstruct_predefined = '4SL_2m'") | ||
|
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
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
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
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
2 changes: 1 addition & 1 deletion
2
cime_config/testdefs/testmods_dirs/clm/deepsoil_bedrock/user_nl_clm
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
lower_boundary_condition = 2 | ||
soil_layerstruct = '49SL_10m' | ||
soil_layerstruct_predefined = '49SL_10m' | ||
use_bedrock = .true. |
10 changes: 0 additions & 10 deletions
10
cime_config/testdefs/testmods_dirs/clm/rm_indiv_lunits_and_collapse_to_dom/README
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
cime_config/testdefs/testmods_dirs/clm/rm_indiv_lunits_and_collapse_to_dom/include_user_mods
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
cime_config/testdefs/testmods_dirs/clm/rm_indiv_lunits_and_collapse_to_dom/user_nl_clm
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
soil_layerstruct = '23SL_3.5m' | ||
soil_layerstruct_predefined = '23SL_3.5m' |
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
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
Oops, something went wrong.