Skip to content

Commit

Permalink
[develop] Change conda env for AQM on Hera to shared one and fix inpu…
Browse files Browse the repository at this point in the history
…t data issue on WCOSS2 (#844)

* Change the python environments for AQM to the conda in the shared location on Hera and Orion.
* Add the input data for AQM fire emission (TEST_AQM_INPUT_BASEDIR) to the shared directory for WE2E.
* Fix the missing source attribute in AQM_ICS on WCOSS2 (Cactus).
  • Loading branch information
chan-hoo committed Jul 5, 2023
1 parent 8ced03f commit cff6f5c
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion modulefiles/tasks/hera/aqm_ics.local.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
2 changes: 1 addition & 1 deletion modulefiles/tasks/hera/fire_emission.local.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
load("hpss")
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
5 changes: 0 additions & 5 deletions modulefiles/tasks/hera/miniconda_online-cmaq.lua

This file was deleted.

4 changes: 4 additions & 0 deletions modulefiles/tasks/hera/miniconda_regional_workflow_cmaq.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
prepend_path("MODULEPATH","/scratch1/NCEPDEV/nems/role.epic/miniconda3/modulefiles")
load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.12.0"))

setenv("SRW_ENV", "regional_workflow_cmaq")
2 changes: 1 addition & 1 deletion modulefiles/tasks/hera/nexus_emission.local.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
2 changes: 1 addition & 1 deletion modulefiles/tasks/hera/nexus_post_split.local.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
2 changes: 1 addition & 1 deletion modulefiles/tasks/hera/point_source.local.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
2 changes: 1 addition & 1 deletion modulefiles/tasks/orion/aqm_ics.local.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
2 changes: 2 additions & 0 deletions modulefiles/tasks/orion/fire_emission.local.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
load("miniconda_regional_workflow_cmaq")
4 changes: 0 additions & 4 deletions modulefiles/tasks/orion/miniconda_online-cmaq.lua

This file was deleted.

4 changes: 4 additions & 0 deletions modulefiles/tasks/orion/miniconda_regional_workflow_cmaq.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
prepend_path("MODULEPATH","/work/noaa/epic-ps/role-epic-ps/miniconda3/modulefiles")
load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.12.0"))

setenv("SRW_ENV", "regional_workflow_cmaq")
2 changes: 1 addition & 1 deletion modulefiles/tasks/orion/nexus_emission.local.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
2 changes: 1 addition & 1 deletion modulefiles/tasks/orion/nexus_post_split.local.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3"))
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
2 changes: 1 addition & 1 deletion modulefiles/tasks/orion/point_source.local.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
load("miniconda_online-cmaq")
load("miniconda_regional_workflow_cmaq")
5 changes: 4 additions & 1 deletion tests/WE2E/run_WE2E_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ def run_we2e_tests(homedir, args) -> None:
if args.verbose_tests:
test_cfg['workflow'].update({"VERBOSE": args.verbose_tests})


logging.debug(f"Overwriting WE2E-test-specific settings for test \n{test_name}\n")

if 'task_get_extrn_ics' in test_cfg:
Expand All @@ -191,6 +190,10 @@ def run_we2e_tests(homedir, args) -> None:
if 'verification' in test_cfg:
logging.debug(test_cfg['verification'])

if 'cpl_aqm_parm' in test_cfg:
test_aqm_input_basedir = machine_defaults['platform']['TEST_AQM_INPUT_BASEDIR']
test_cfg['cpl_aqm_parm']['DCOMINfire_default'] = f"{test_aqm_input_basedir}/RAVE_fire"

logging.debug(f"Writing updated config.yaml for test {test_name}\n"\
"based on specified command-line arguments:\n")
logging.debug(cfg_to_yaml_str(test_cfg))
Expand Down
1 change: 1 addition & 0 deletions ush/config_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ platform:
#-----------------------------------------------------------------------
#
TEST_EXTRN_MDL_SOURCE_BASEDIR: ""
TEST_AQM_INPUT_BASEDIR: ""
TEST_PREGEN_BASEDIR: ""
TEST_ALT_EXTRN_MDL_SYSBASEDIR_ICS: ""
TEST_ALT_EXTRN_MDL_SYSBASEDIR_LBCS: ""
Expand Down
6 changes: 0 additions & 6 deletions ush/load_modules_run_task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@ if [ -n "${SRW_ENV:-}" ] ; then
set -u
fi

if [ -n "${AQM_ENV:-}" ] ; then
set +u
source "${AQM_ENV_FP}/${AQM_ENV}/bin/activate"
set -u
fi

#
#-----------------------------------------------------------------------
#
Expand Down
1 change: 1 addition & 0 deletions ush/machine/cheyenne.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ platform:
RUN_CMD_AQMLBC: mpirun -np ${NUMTS}
PRE_TASK_CMDS: '{ ulimit -s unlimited; ulimit -a; }'
TEST_EXTRN_MDL_SOURCE_BASEDIR: /glade/work/epicufsrt/contrib/UFS_SRW_data/develop/input_model_data
TEST_AQM_INPUT_BASEDIR: /glade/work/epicufsrt/contrib/UFS_SRW_data/develop/aqm_data
TEST_PREGEN_BASEDIR: /glade/work/epicufsrt/contrib/UFS_SRW_data/develop/FV3LAM_pregen
TEST_ALT_EXTRN_MDL_SYSBASEDIR_ICS: /glade/work/epicufsrt/contrib/UFS_SRW_data/develop/dummy_FV3GFS_sys_dir
TEST_ALT_EXTRN_MDL_SYSBASEDIR_LBCS: /glade/work/epicufsrt/contrib/UFS_SRW_data/develop/dummy_FV3GFS_sys_dir
Expand Down
1 change: 1 addition & 0 deletions ush/machine/hera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ platform:
SCHED_NATIVE_CMD: --export=NONE
PRE_TASK_CMDS: '{ ulimit -s unlimited; ulimit -a; }'
TEST_EXTRN_MDL_SOURCE_BASEDIR: /scratch1/NCEPDEV/nems/role.epic/UFS_SRW_data/develop/input_model_data
TEST_AQM_INPUT_BASEDIR: /scratch1/NCEPDEV/nems/role.epic/UFS_SRW_data/develop/aqm_data
TEST_PREGEN_BASEDIR: /scratch1/NCEPDEV/nems/role.epic/UFS_SRW_data/develop/FV3LAM_pregen
TEST_ALT_EXTRN_MDL_SYSBASEDIR_ICS: /scratch1/NCEPDEV/nems/role.epic/UFS_SRW_data/develop/dummy_FV3GFS_sys_dir
TEST_ALT_EXTRN_MDL_SYSBASEDIR_LBCS: /scratch1/NCEPDEV/nems/role.epic/UFS_SRW_data/develop/dummy_FV3GFS_sys_dir
Expand Down
1 change: 1 addition & 0 deletions ush/machine/orion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ platform:
SCHED_NATIVE_CMD: --export=NONE
PRE_TASK_CMDS: '{ ulimit -s unlimited; ulimit -a; }'
TEST_EXTRN_MDL_SOURCE_BASEDIR: /work/noaa/epic-ps/role-epic-ps/UFS_SRW_data/develop/input_model_data
TEST_AQM_INPUT_BASEDIR: /work/noaa/epic-ps/role-epic-ps/UFS_SRW_data/develop/aqm_data
TEST_PREGEN_BASEDIR: /work/noaa/epic-ps/role-epic-ps/UFS_SRW_data/develop/FV3LAM_pregen
FIXaer: /work/noaa/epic-ps/role-epic-ps/UFS_SRW_data/develop/fix/fix_aer
FIXgsi: /work/noaa/epic-ps/role-epic-ps/UFS_SRW_data/develop/fix/fix_gsi
Expand Down
1 change: 1 addition & 0 deletions ush/machine/wcoss2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ platform:
SCHED_NATIVE_CMD: -l place=excl
PRE_TASK_CMDS: '{ ulimit -s unlimited; ulimit -a; }'
TEST_EXTRN_MDL_SOURCE_BASEDIR: /lfs/h2/emc/lam/noscrub/UFS_SRW_App/develop/input_model_data
TEST_AQM_INPUT_BASEDIR: /lfs/h2/emc/lam/noscrub/UFS_SRW_App/develop/aqm_data
TEST_PREGEN_BASEDIR: /lfs/h2/emc/lam/noscrub/UFS_SRW_App/develop/FV3LAM_pregen
FIXaer: /lfs/h2/emc/lam/noscrub/UFS_SRW_App/develop/fix/fix_aer
FIXgsm: /lfs/h2/emc/lam/noscrub/UFS_SRW_App/develop/fix/fix_am
Expand Down

0 comments on commit cff6f5c

Please sign in to comment.