forked from ESCOMP/CAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ESCOMP#858 from PUMASDevelopment/katetc/machlrn_ca…
…mdev_pr2_cac cam6_3_144: New PUMAS external with machine learning support
- Loading branch information
Showing
22 changed files
with
761 additions
and
25 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
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,47 @@ | ||
""" | ||
CIME MGP test. This class inherits from SystemTestsCompareTwo | ||
This is a changing config options test to compare between MG3 and | ||
PUMAS in camdev. The use of MG3 or PUMAS should be bfb. | ||
This is just like an ERC test and it's meant for CAM only | ||
as it only does a single build. | ||
(1) Do an initial run with microphys setup as MG3 (suffix MG3) | ||
(2) Do an initial run with microphys setup as PUMAS (suffix PUMAS) | ||
""" | ||
|
||
import sys | ||
from CIME.XML.standard_module_setup import * | ||
from CIME.SystemTests.system_tests_compare_two import SystemTestsCompareTwo | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
class MGP(SystemTestsCompareTwo): | ||
|
||
def __init__(self, case, | ||
separate_builds=True, | ||
run_one_suffix="mg3", | ||
run_two_suffix="pumas", | ||
run_one_description="MG3 microphysics", | ||
run_two_description="PUMAS microphysics", | ||
multisubmit=False, | ||
**kwargs | ||
): | ||
SystemTestsCompareTwo.__init__(self, case, | ||
separate_builds=separate_builds, | ||
run_one_suffix=run_one_suffix, | ||
run_two_suffix=run_two_suffix, | ||
run_one_description=run_one_description, | ||
run_two_description=run_two_description, | ||
multisubmit=multisubmit, | ||
**kwargs | ||
) | ||
def _case_one_setup(self): | ||
stop_n = self._case1.get_value("STOP_N") | ||
expect(stop_n >= 3, "STOP_N must be at least 3, STOP_N = {}".format(stop_n)) | ||
self._case.set_value("CAM_CONFIG_OPTS","-phys cam_dev -microphys mg3") | ||
|
||
def _case_two_setup(self): | ||
self._case.set_value("CAM_CONFIG_OPTS","-phys cam_dev -microphys pumas") | ||
|
||
|
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
3 changes: 3 additions & 0 deletions
3
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_emulated/shell_commands
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,3 @@ | ||
./xmlchange ROF_NCPL=\$ATM_NCPL | ||
./xmlchange GLC_NCPL=\$ATM_NCPL | ||
./xmlchange CAM_CONFIG_OPTS=' -microphys pumas' --append |
5 changes: 5 additions & 0 deletions
5
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_emulated/user_nl_cam
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,5 @@ | ||
mfilt=1,1,1,1,1,1 | ||
ndens=1,1,1,1,1,1 | ||
nhtfrq=9,9,9,9,9,9 | ||
inithist='ENDOFRUN' | ||
micro_mg_warm_rain='emulated' |
26 changes: 26 additions & 0 deletions
26
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_emulated/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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
!---------------------------------------------------------------------------------- | ||
! Users should add all user specific namelist changes below in the form of | ||
! namelist_var = new_namelist_value | ||
! | ||
! Include namelist variables for drv_flds_in ONLY if -megan and/or -drydep options | ||
! are set in the CLM_NAMELIST_OPTS env variable. | ||
! | ||
! EXCEPTIONS: | ||
! Set use_cndv by the compset you use and the CLM_BLDNML_OPTS -dynamic_vegetation setting | ||
! Set use_vichydro by the compset you use and the CLM_BLDNML_OPTS -vichydro setting | ||
! Set use_cn by the compset you use and CLM_BLDNML_OPTS -bgc setting | ||
! Set use_crop by the compset you use and CLM_BLDNML_OPTS -crop setting | ||
! Set spinup_state by the CLM_BLDNML_OPTS -bgc_spinup setting | ||
! Set irrigate by the CLM_BLDNML_OPTS -irrig setting | ||
! Set dtime with L_NCPL option | ||
! Set fatmlndfrc with LND_DOMAIN_PATH/LND_DOMAIN_FILE options | ||
! Set finidat with RUN_REFCASE/RUN_REFDATE/RUN_REFTOD options for hybrid or branch cases | ||
! (includes $inst_string for multi-ensemble cases) | ||
! Set glc_grid with CISM_GRID option | ||
! Set glc_smb with GLC_SMB option | ||
! Set maxpatch_glcmec with GLC_NEC option | ||
! Set glc_do_dynglacier with GLC_TWO_WAY_COUPLING env variable | ||
!---------------------------------------------------------------------------------- | ||
hist_nhtfrq = 9 | ||
hist_mfilt = 1 | ||
hist_ndens = 1 |
3 changes: 3 additions & 0 deletions
3
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_sb2001/shell_commands
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,3 @@ | ||
./xmlchange ROF_NCPL=\$ATM_NCPL | ||
./xmlchange GLC_NCPL=\$ATM_NCPL | ||
./xmlchange CAM_CONFIG_OPTS=' -microphys pumas' --append |
5 changes: 5 additions & 0 deletions
5
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_sb2001/user_nl_cam
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,5 @@ | ||
mfilt=1,1,1,1,1,1 | ||
ndens=1,1,1,1,1,1 | ||
nhtfrq=9,9,9,9,9,9 | ||
inithist='ENDOFRUN' | ||
micro_mg_warm_rain='sb2001' |
26 changes: 26 additions & 0 deletions
26
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_sb2001/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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
!---------------------------------------------------------------------------------- | ||
! Users should add all user specific namelist changes below in the form of | ||
! namelist_var = new_namelist_value | ||
! | ||
! Include namelist variables for drv_flds_in ONLY if -megan and/or -drydep options | ||
! are set in the CLM_NAMELIST_OPTS env variable. | ||
! | ||
! EXCEPTIONS: | ||
! Set use_cndv by the compset you use and the CLM_BLDNML_OPTS -dynamic_vegetation setting | ||
! Set use_vichydro by the compset you use and the CLM_BLDNML_OPTS -vichydro setting | ||
! Set use_cn by the compset you use and CLM_BLDNML_OPTS -bgc setting | ||
! Set use_crop by the compset you use and CLM_BLDNML_OPTS -crop setting | ||
! Set spinup_state by the CLM_BLDNML_OPTS -bgc_spinup setting | ||
! Set irrigate by the CLM_BLDNML_OPTS -irrig setting | ||
! Set dtime with L_NCPL option | ||
! Set fatmlndfrc with LND_DOMAIN_PATH/LND_DOMAIN_FILE options | ||
! Set finidat with RUN_REFCASE/RUN_REFDATE/RUN_REFTOD options for hybrid or branch cases | ||
! (includes $inst_string for multi-ensemble cases) | ||
! Set glc_grid with CISM_GRID option | ||
! Set glc_smb with GLC_SMB option | ||
! Set maxpatch_glcmec with GLC_NEC option | ||
! Set glc_do_dynglacier with GLC_TWO_WAY_COUPLING env variable | ||
!---------------------------------------------------------------------------------- | ||
hist_nhtfrq = 9 | ||
hist_mfilt = 1 | ||
hist_ndens = 1 |
3 changes: 3 additions & 0 deletions
3
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_tau/shell_commands
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,3 @@ | ||
./xmlchange ROF_NCPL=\$ATM_NCPL | ||
./xmlchange GLC_NCPL=\$ATM_NCPL | ||
./xmlchange CAM_CONFIG_OPTS=' -microphys pumas' --append |
5 changes: 5 additions & 0 deletions
5
cime_config/testdefs/testmods_dirs/cam/outfrq9s_pumas_tau/user_nl_cam
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,5 @@ | ||
mfilt=1,1,1,1,1,1 | ||
ndens=1,1,1,1,1,1 | ||
nhtfrq=9,9,9,9,9,9 | ||
inithist='ENDOFRUN' | ||
micro_mg_warm_rain='tau' |
Oops, something went wrong.