From 79fdd804b00e4b20992e93f5b20fc13468fe05f7 Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Thu, 13 Oct 2022 02:50:38 +0000 Subject: [PATCH 1/8] Convert modulefiles to Lua. --- devbuild.sh | 2 +- modulefiles/build_cheyenne_gnu | 39 -------- modulefiles/build_cheyenne_gnu.lua | 38 ++++++++ modulefiles/build_cheyenne_intel | 37 ------- modulefiles/build_cheyenne_intel.lua | 36 +++++++ modulefiles/build_gaea_intel | 27 ------ modulefiles/build_gaea_intel.lua | 27 ++++++ modulefiles/build_hera_intel | 31 ------ modulefiles/build_hera_intel.lua | 27 ++++++ modulefiles/build_jet_intel | 31 ------ modulefiles/build_jet_intel.lua | 28 ++++++ modulefiles/build_linux_gnu | 91 ----------------- modulefiles/build_linux_gnu.lua | 87 +++++++++++++++++ modulefiles/build_macos_gnu | 90 ----------------- modulefiles/build_macos_gnu.lua | 97 +++++++++++++++++++ modulefiles/build_noaacloud_intel | 14 --- modulefiles/build_noaacloud_intel.lua | 18 ++++ modulefiles/build_odin_intel | 54 ----------- modulefiles/build_odin_intel.lua | 52 ++++++++++ modulefiles/build_orion_intel | 28 ------ modulefiles/build_orion_intel.lua | 28 ++++++ modulefiles/build_singularity_gnu | 43 -------- modulefiles/build_singularity_gnu.lua | 40 ++++++++ modulefiles/build_wcoss2_intel | 51 ---------- modulefiles/build_wcoss2_intel.lua | 49 ++++++++++ modulefiles/srw_common | 33 ------- modulefiles/srw_common.lua | 31 ++++++ .../tasks/cheyenne/conda_regional_workflow | 5 - .../cheyenne/conda_regional_workflow.lua | 3 + .../tasks/cheyenne/get_extrn_ics.local | 4 - .../tasks/cheyenne/get_extrn_ics.local.lua | 1 + .../tasks/cheyenne/get_extrn_lbcs.local | 4 - .../tasks/cheyenne/get_extrn_lbcs.local.lua | 1 + modulefiles/tasks/cheyenne/make_grid.local | 2 - .../tasks/cheyenne/make_grid.local.lua | 1 + modulefiles/tasks/cheyenne/make_ics.local | 2 - modulefiles/tasks/cheyenne/make_ics.local.lua | 1 + modulefiles/tasks/cheyenne/make_lbcs.local | 2 - .../tasks/cheyenne/make_lbcs.local.lua | 1 + .../tasks/cheyenne/make_orog.hardcoded | 9 -- .../tasks/cheyenne/make_orog.hardcoded.lua | 4 + modulefiles/tasks/cheyenne/run_fcst.local | 2 - modulefiles/tasks/cheyenne/run_fcst.local.lua | 1 + modulefiles/tasks/cheyenne/run_vx.local | 2 - modulefiles/tasks/cheyenne/run_vx.local.lua | 1 + modulefiles/tasks/gaea/get_extrn_ics.local | 3 - .../tasks/gaea/get_extrn_ics.local.lua | 1 + modulefiles/tasks/gaea/get_extrn_lbcs.local | 3 - .../tasks/gaea/get_extrn_lbcs.local.lua | 1 + modulefiles/tasks/gaea/make_grid.local | 3 - modulefiles/tasks/gaea/make_grid.local.lua | 1 + modulefiles/tasks/gaea/make_ics.local | 3 - modulefiles/tasks/gaea/make_ics.local.lua | 1 + modulefiles/tasks/gaea/make_lbcs.local | 3 - modulefiles/tasks/gaea/make_lbcs.local.lua | 1 + modulefiles/tasks/gaea/make_orog.local | 3 - modulefiles/tasks/gaea/make_orog.local.lua | 1 + .../tasks/gaea/miniconda_regional_workflow | 6 -- .../gaea/miniconda_regional_workflow.lua | 4 + modulefiles/tasks/gaea/run_fcst.local | 3 - modulefiles/tasks/gaea/run_fcst.local.lua | 1 + modulefiles/tasks/gaea/run_vx.local | 5 - modulefiles/tasks/gaea/run_vx.local.lua | 2 + modulefiles/tasks/hera/get_extrn_ics.local | 7 -- .../tasks/hera/get_extrn_ics.local.lua | 2 + modulefiles/tasks/hera/get_extrn_lbcs.local | 7 -- .../tasks/hera/get_extrn_lbcs.local.lua | 2 + modulefiles/tasks/hera/get_obs.local | 11 --- modulefiles/tasks/hera/get_obs.local.lua | 5 + modulefiles/tasks/hera/make_grid.local | 3 - modulefiles/tasks/hera/make_grid.local.lua | 1 + modulefiles/tasks/hera/make_ics.local | 3 - modulefiles/tasks/hera/make_ics.local.lua | 1 + modulefiles/tasks/hera/make_lbcs.local | 2 - modulefiles/tasks/hera/make_lbcs.local.lua | 1 + .../tasks/hera/miniconda_regional_workflow | 5 - .../hera/miniconda_regional_workflow.lua | 4 + modulefiles/tasks/hera/run_fcst.local | 2 - modulefiles/tasks/hera/run_fcst.local.lua | 1 + modulefiles/tasks/hera/run_vx.local | 5 - modulefiles/tasks/hera/run_vx.local.lua | 3 + modulefiles/tasks/jet/get_extrn_ics.local | 9 -- modulefiles/tasks/jet/get_extrn_ics.local.lua | 2 + modulefiles/tasks/jet/get_extrn_lbcs.local | 9 -- .../tasks/jet/get_extrn_lbcs.local.lua | 2 + modulefiles/tasks/jet/make_grid.local | 3 - modulefiles/tasks/jet/make_grid.local.lua | 1 + modulefiles/tasks/jet/make_ics.local | 2 - modulefiles/tasks/jet/make_ics.local.lua | 1 + modulefiles/tasks/jet/make_lbcs.local | 2 - modulefiles/tasks/jet/make_lbcs.local.lua | 1 + .../tasks/jet/miniconda_regional_workflow | 5 - .../tasks/jet/miniconda_regional_workflow.lua | 4 + modulefiles/tasks/jet/run_fcst.local | 2 - modulefiles/tasks/jet/run_fcst.local.lua | 1 + modulefiles/tasks/jet/run_vx.local | 5 - modulefiles/tasks/jet/run_vx.local.lua | 3 + .../tasks/noaacloud/get_extrn_ics.local | 6 -- .../tasks/noaacloud/get_extrn_ics.local.lua | 1 + .../tasks/noaacloud/get_extrn_lbcs.local | 5 - .../tasks/noaacloud/get_extrn_lbcs.local.lua | 1 + modulefiles/tasks/noaacloud/make_grid.local | 11 --- .../tasks/noaacloud/make_grid.local.lua | 1 + modulefiles/tasks/noaacloud/make_ics.local | 13 --- .../tasks/noaacloud/make_ics.local.lua | 1 + modulefiles/tasks/noaacloud/make_lbcs.local | 13 --- .../tasks/noaacloud/make_lbcs.local.lua | 1 + modulefiles/tasks/noaacloud/make_orog.local | 11 --- .../tasks/noaacloud/make_orog.local.lua | 1 + .../tasks/noaacloud/make_sfc_climo.local | 11 --- .../tasks/noaacloud/make_sfc_climo.local.lua | 1 + .../noaacloud/miniconda_regional_workflow | 5 - .../noaacloud/miniconda_regional_workflow.lua | 4 + modulefiles/tasks/noaacloud/run_fcst.local | 13 --- .../tasks/noaacloud/run_fcst.local.lua | 1 + modulefiles/tasks/noaacloud/run_post.local | 13 --- .../tasks/noaacloud/run_post.local.lua | 1 + modulefiles/tasks/odin/get_extrn_ics.local | 8 -- .../tasks/odin/get_extrn_ics.local.lua | 0 modulefiles/tasks/odin/get_extrn_lbcs.local | 8 -- .../tasks/odin/get_extrn_lbcs.local.lua | 0 modulefiles/tasks/orion/get_extrn_ics.local | 6 -- .../tasks/orion/get_extrn_ics.local.lua | 1 + modulefiles/tasks/orion/get_extrn_lbcs.local | 5 - .../tasks/orion/get_extrn_lbcs.local.lua | 1 + modulefiles/tasks/orion/make_grid.local | 3 - modulefiles/tasks/orion/make_grid.local.lua | 1 + modulefiles/tasks/orion/make_ics.local | 2 - modulefiles/tasks/orion/make_ics.local.lua | 1 + modulefiles/tasks/orion/make_lbcs.local | 2 - modulefiles/tasks/orion/make_lbcs.local.lua | 1 + .../tasks/orion/miniconda_regional_workflow | 5 - .../orion/miniconda_regional_workflow.lua | 4 + modulefiles/tasks/orion/run_fcst.local | 2 - modulefiles/tasks/orion/run_fcst.local.lua | 1 + .../tasks/stampede/get_extrn_ics.local | 8 -- .../tasks/stampede/get_extrn_ics.local.lua | 0 .../tasks/stampede/get_extrn_lbcs.local | 8 -- .../tasks/stampede/get_extrn_lbcs.local.lua | 0 modulefiles/tasks/wcoss2/get_extrn_ics.local | 4 - .../tasks/wcoss2/get_extrn_ics.local.lua | 2 + modulefiles/tasks/wcoss2/get_extrn_lbcs.local | 4 - .../tasks/wcoss2/get_extrn_lbcs.local.lua | 2 + modulefiles/tasks/wcoss2/get_obs.local | 4 - modulefiles/tasks/wcoss2/get_obs.local.lua | 2 + modulefiles/tasks/wcoss2/make_grid.local | 4 - modulefiles/tasks/wcoss2/make_grid.local.lua | 2 + modulefiles/tasks/wcoss2/make_ics.local | 4 - modulefiles/tasks/wcoss2/make_ics.local.lua | 2 + modulefiles/tasks/wcoss2/make_lbcs.local | 4 - modulefiles/tasks/wcoss2/make_lbcs.local.lua | 2 + modulefiles/tasks/wcoss2/run_fcst.local | 4 - modulefiles/tasks/wcoss2/run_fcst.local.lua | 2 + modulefiles/tasks/wcoss2/run_vx.local | 4 - modulefiles/tasks/wcoss2/run_vx.local.lua | 2 + modulefiles/wflow_cheyenne | 20 ---- modulefiles/wflow_cheyenne.lua | 20 ++++ modulefiles/wflow_gaea | 21 ---- modulefiles/wflow_gaea.lua | 19 ++++ modulefiles/wflow_hera | 19 ---- modulefiles/wflow_hera.lua | 17 ++++ modulefiles/wflow_jet | 19 ---- modulefiles/wflow_jet.lua | 17 ++++ modulefiles/wflow_linux | 29 ------ modulefiles/wflow_linux.lua | 26 +++++ modulefiles/wflow_macos | 31 ------ modulefiles/wflow_macos.lua | 26 +++++ modulefiles/wflow_noaacloud | 23 ----- modulefiles/wflow_noaacloud.lua | 22 +++++ modulefiles/wflow_odin | 42 -------- modulefiles/wflow_odin.lua | 33 +++++++ modulefiles/wflow_orion | 19 ---- modulefiles/wflow_orion.lua | 19 ++++ modulefiles/wflow_singularity | 16 --- modulefiles/wflow_singularity.lua | 13 +++ modulefiles/wflow_wcoss2 | 14 --- modulefiles/wflow_wcoss2.lua | 18 ++++ ush/load_modules_run_task.sh | 2 +- 178 files changed, 891 insertions(+), 1160 deletions(-) delete mode 100644 modulefiles/build_cheyenne_gnu create mode 100644 modulefiles/build_cheyenne_gnu.lua delete mode 100644 modulefiles/build_cheyenne_intel create mode 100644 modulefiles/build_cheyenne_intel.lua delete mode 100644 modulefiles/build_gaea_intel create mode 100644 modulefiles/build_gaea_intel.lua delete mode 100644 modulefiles/build_hera_intel create mode 100644 modulefiles/build_hera_intel.lua delete mode 100644 modulefiles/build_jet_intel create mode 100644 modulefiles/build_jet_intel.lua delete mode 100644 modulefiles/build_linux_gnu create mode 100644 modulefiles/build_linux_gnu.lua delete mode 100644 modulefiles/build_macos_gnu create mode 100644 modulefiles/build_macos_gnu.lua delete mode 100644 modulefiles/build_noaacloud_intel create mode 100644 modulefiles/build_noaacloud_intel.lua delete mode 100644 modulefiles/build_odin_intel create mode 100644 modulefiles/build_odin_intel.lua delete mode 100644 modulefiles/build_orion_intel create mode 100644 modulefiles/build_orion_intel.lua delete mode 100644 modulefiles/build_singularity_gnu create mode 100644 modulefiles/build_singularity_gnu.lua delete mode 100644 modulefiles/build_wcoss2_intel create mode 100644 modulefiles/build_wcoss2_intel.lua delete mode 100644 modulefiles/srw_common create mode 100644 modulefiles/srw_common.lua delete mode 100644 modulefiles/tasks/cheyenne/conda_regional_workflow create mode 100644 modulefiles/tasks/cheyenne/conda_regional_workflow.lua delete mode 100644 modulefiles/tasks/cheyenne/get_extrn_ics.local create mode 100644 modulefiles/tasks/cheyenne/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/cheyenne/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/cheyenne/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/cheyenne/make_grid.local create mode 100644 modulefiles/tasks/cheyenne/make_grid.local.lua delete mode 100644 modulefiles/tasks/cheyenne/make_ics.local create mode 100644 modulefiles/tasks/cheyenne/make_ics.local.lua delete mode 100644 modulefiles/tasks/cheyenne/make_lbcs.local create mode 100644 modulefiles/tasks/cheyenne/make_lbcs.local.lua delete mode 100644 modulefiles/tasks/cheyenne/make_orog.hardcoded create mode 100644 modulefiles/tasks/cheyenne/make_orog.hardcoded.lua delete mode 100644 modulefiles/tasks/cheyenne/run_fcst.local create mode 100644 modulefiles/tasks/cheyenne/run_fcst.local.lua delete mode 100644 modulefiles/tasks/cheyenne/run_vx.local create mode 100644 modulefiles/tasks/cheyenne/run_vx.local.lua delete mode 100644 modulefiles/tasks/gaea/get_extrn_ics.local create mode 100644 modulefiles/tasks/gaea/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/gaea/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/gaea/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/gaea/make_grid.local create mode 100644 modulefiles/tasks/gaea/make_grid.local.lua delete mode 100644 modulefiles/tasks/gaea/make_ics.local create mode 100644 modulefiles/tasks/gaea/make_ics.local.lua delete mode 100644 modulefiles/tasks/gaea/make_lbcs.local create mode 100644 modulefiles/tasks/gaea/make_lbcs.local.lua delete mode 100644 modulefiles/tasks/gaea/make_orog.local create mode 100644 modulefiles/tasks/gaea/make_orog.local.lua delete mode 100644 modulefiles/tasks/gaea/miniconda_regional_workflow create mode 100644 modulefiles/tasks/gaea/miniconda_regional_workflow.lua delete mode 100644 modulefiles/tasks/gaea/run_fcst.local create mode 100644 modulefiles/tasks/gaea/run_fcst.local.lua delete mode 100644 modulefiles/tasks/gaea/run_vx.local create mode 100644 modulefiles/tasks/gaea/run_vx.local.lua delete mode 100644 modulefiles/tasks/hera/get_extrn_ics.local create mode 100644 modulefiles/tasks/hera/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/hera/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/hera/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/hera/get_obs.local create mode 100644 modulefiles/tasks/hera/get_obs.local.lua delete mode 100644 modulefiles/tasks/hera/make_grid.local create mode 100644 modulefiles/tasks/hera/make_grid.local.lua delete mode 100644 modulefiles/tasks/hera/make_ics.local create mode 100644 modulefiles/tasks/hera/make_ics.local.lua delete mode 100644 modulefiles/tasks/hera/make_lbcs.local create mode 100644 modulefiles/tasks/hera/make_lbcs.local.lua delete mode 100644 modulefiles/tasks/hera/miniconda_regional_workflow create mode 100644 modulefiles/tasks/hera/miniconda_regional_workflow.lua delete mode 100644 modulefiles/tasks/hera/run_fcst.local create mode 100644 modulefiles/tasks/hera/run_fcst.local.lua delete mode 100644 modulefiles/tasks/hera/run_vx.local create mode 100644 modulefiles/tasks/hera/run_vx.local.lua delete mode 100644 modulefiles/tasks/jet/get_extrn_ics.local create mode 100644 modulefiles/tasks/jet/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/jet/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/jet/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/jet/make_grid.local create mode 100644 modulefiles/tasks/jet/make_grid.local.lua delete mode 100644 modulefiles/tasks/jet/make_ics.local create mode 100644 modulefiles/tasks/jet/make_ics.local.lua delete mode 100644 modulefiles/tasks/jet/make_lbcs.local create mode 100644 modulefiles/tasks/jet/make_lbcs.local.lua delete mode 100644 modulefiles/tasks/jet/miniconda_regional_workflow create mode 100644 modulefiles/tasks/jet/miniconda_regional_workflow.lua delete mode 100644 modulefiles/tasks/jet/run_fcst.local create mode 100644 modulefiles/tasks/jet/run_fcst.local.lua delete mode 100644 modulefiles/tasks/jet/run_vx.local create mode 100644 modulefiles/tasks/jet/run_vx.local.lua delete mode 100644 modulefiles/tasks/noaacloud/get_extrn_ics.local create mode 100644 modulefiles/tasks/noaacloud/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/noaacloud/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/noaacloud/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/noaacloud/make_grid.local create mode 100644 modulefiles/tasks/noaacloud/make_grid.local.lua delete mode 100644 modulefiles/tasks/noaacloud/make_ics.local create mode 100644 modulefiles/tasks/noaacloud/make_ics.local.lua delete mode 100644 modulefiles/tasks/noaacloud/make_lbcs.local create mode 100644 modulefiles/tasks/noaacloud/make_lbcs.local.lua delete mode 100644 modulefiles/tasks/noaacloud/make_orog.local create mode 100644 modulefiles/tasks/noaacloud/make_orog.local.lua delete mode 100644 modulefiles/tasks/noaacloud/make_sfc_climo.local create mode 100644 modulefiles/tasks/noaacloud/make_sfc_climo.local.lua delete mode 100644 modulefiles/tasks/noaacloud/miniconda_regional_workflow create mode 100644 modulefiles/tasks/noaacloud/miniconda_regional_workflow.lua delete mode 100644 modulefiles/tasks/noaacloud/run_fcst.local create mode 100644 modulefiles/tasks/noaacloud/run_fcst.local.lua delete mode 100644 modulefiles/tasks/noaacloud/run_post.local create mode 100644 modulefiles/tasks/noaacloud/run_post.local.lua delete mode 100644 modulefiles/tasks/odin/get_extrn_ics.local create mode 100644 modulefiles/tasks/odin/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/odin/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/odin/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/orion/get_extrn_ics.local create mode 100644 modulefiles/tasks/orion/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/orion/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/orion/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/orion/make_grid.local create mode 100644 modulefiles/tasks/orion/make_grid.local.lua delete mode 100644 modulefiles/tasks/orion/make_ics.local create mode 100644 modulefiles/tasks/orion/make_ics.local.lua delete mode 100644 modulefiles/tasks/orion/make_lbcs.local create mode 100644 modulefiles/tasks/orion/make_lbcs.local.lua delete mode 100644 modulefiles/tasks/orion/miniconda_regional_workflow create mode 100644 modulefiles/tasks/orion/miniconda_regional_workflow.lua delete mode 100644 modulefiles/tasks/orion/run_fcst.local create mode 100644 modulefiles/tasks/orion/run_fcst.local.lua delete mode 100644 modulefiles/tasks/stampede/get_extrn_ics.local create mode 100644 modulefiles/tasks/stampede/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/stampede/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/stampede/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/wcoss2/get_extrn_ics.local create mode 100644 modulefiles/tasks/wcoss2/get_extrn_ics.local.lua delete mode 100644 modulefiles/tasks/wcoss2/get_extrn_lbcs.local create mode 100644 modulefiles/tasks/wcoss2/get_extrn_lbcs.local.lua delete mode 100644 modulefiles/tasks/wcoss2/get_obs.local create mode 100644 modulefiles/tasks/wcoss2/get_obs.local.lua delete mode 100644 modulefiles/tasks/wcoss2/make_grid.local create mode 100644 modulefiles/tasks/wcoss2/make_grid.local.lua delete mode 100644 modulefiles/tasks/wcoss2/make_ics.local create mode 100644 modulefiles/tasks/wcoss2/make_ics.local.lua delete mode 100644 modulefiles/tasks/wcoss2/make_lbcs.local create mode 100644 modulefiles/tasks/wcoss2/make_lbcs.local.lua delete mode 100644 modulefiles/tasks/wcoss2/run_fcst.local create mode 100644 modulefiles/tasks/wcoss2/run_fcst.local.lua delete mode 100644 modulefiles/tasks/wcoss2/run_vx.local create mode 100644 modulefiles/tasks/wcoss2/run_vx.local.lua delete mode 100644 modulefiles/wflow_cheyenne create mode 100644 modulefiles/wflow_cheyenne.lua delete mode 100644 modulefiles/wflow_gaea create mode 100644 modulefiles/wflow_gaea.lua delete mode 100644 modulefiles/wflow_hera create mode 100644 modulefiles/wflow_hera.lua delete mode 100644 modulefiles/wflow_jet create mode 100644 modulefiles/wflow_jet.lua delete mode 100644 modulefiles/wflow_linux create mode 100644 modulefiles/wflow_linux.lua delete mode 100644 modulefiles/wflow_macos create mode 100644 modulefiles/wflow_macos.lua delete mode 100644 modulefiles/wflow_noaacloud create mode 100644 modulefiles/wflow_noaacloud.lua delete mode 100644 modulefiles/wflow_odin create mode 100644 modulefiles/wflow_odin.lua delete mode 100644 modulefiles/wflow_orion create mode 100644 modulefiles/wflow_orion.lua delete mode 100644 modulefiles/wflow_singularity create mode 100644 modulefiles/wflow_singularity.lua delete mode 100644 modulefiles/wflow_wcoss2 create mode 100644 modulefiles/wflow_wcoss2.lua diff --git a/devbuild.sh b/devbuild.sh index 045611d17d..218a0eeb81 100755 --- a/devbuild.sh +++ b/devbuild.sh @@ -245,7 +245,7 @@ fi # set MODULE_FILE for this platform/compiler combination MODULE_FILE="build_${PLATFORM}_${COMPILER}" -if [ ! -f "${SRW_DIR}/modulefiles/${MODULE_FILE}" ]; then +if [ ! -f "${SRW_DIR}/modulefiles/${MODULE_FILE}.lua" ]; then printf "ERROR: module file does not exist for platform/compiler\n" >&2 printf " MODULE_FILE=${MODULE_FILE}\n" >&2 printf " PLATFORM=${PLATFORM}\n" >&2 diff --git a/modulefiles/build_cheyenne_gnu b/modulefiles/build_cheyenne_gnu deleted file mode 100644 index 0fc0d2b8ad..0000000000 --- a/modulefiles/build_cheyenne_gnu +++ /dev/null @@ -1,39 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the CISL Cheyenne machine using GNU" -} - -module-whatis "Loads libraries needed for building SRW on Cheyenne" - -module load cmake/3.22.0 -module load python/3.7.9 -module load ncarenv/1.3 -module load gnu/11.2.0 -module load mpt/2.25 -setenv MKLROOT /glade/u/apps/opt/intel/2022.1/mkl/latest -module load ncarcompilers/0.5.0 -module unload netcdf - -module use /glade/work/epicufsrt/GMTB/tools/gnu/11.2.0/hpc-stack-v1.2.0/modulefiles/stack -module load hpc/1.2.0 -module load hpc-gnu/11.2.0 -module load hpc-mpt/2.25 - -module load srw_common - -module load g2/3.4.5 -module load esmf/8.3.0b09 -module load netcdf/4.7.4 -module load libpng/1.6.37 -module load pio/2.5.3 -module load fms/2022.01 - -setenv CMAKE_C_COMPILER mpicc -setenv CMAKE_CXX_COMPILER mpicxx -setenv CMAKE_Fortran_COMPILER mpif90 -setenv CMAKE_Platform cheyenne.gnu -setenv CC mpicc -setenv CXX mpicxx -setenv FC mpif90 diff --git a/modulefiles/build_cheyenne_gnu.lua b/modulefiles/build_cheyenne_gnu.lua new file mode 100644 index 0000000000..91417c4e6b --- /dev/null +++ b/modulefiles/build_cheyenne_gnu.lua @@ -0,0 +1,38 @@ +help([[ +This module loads libraries for building the UFS SRW App on +the CISL machine Cheyenne using GNU +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Cheyenne ]===]) + +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.22.0")) +load(pathJoin("python", os.getenv("python_ver") or "3.7.9")) +load(pathJoin("ncarenv", os.getenv("ncarenv_ver") or "1.3")) +load(pathJoin("gnu", os.getenv("gnu_ver") or "11.2.0")) +load(pathJoin("mpt", os.getenv("mpt_ver") or "2.25")) +setenv("MKLROOT", "/glade/u/apps/opt/intel/2022.1/mkl/latest") +load(pathJoin("ncarcompilers", os.getenv("ncarcompilers_ver") or "0.5.0")) +unload("netcdf") + +prepend_path("MODULEPATH","/glade/work/epicufsrt/GMTB/tools/gnu/11.2.0/hpc-stack-v1.2.0/modulefiles/stack") +load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0")) +load(pathJoin("hpc-gnu", os.getenv("hpc_gnu_ver") or "11.2.0")) +load(pathJoin("hpc-mpt", os.getenv("hpc_mpt_ver") or "2.25")) + +load("srw_common") + +load(pathJoin("g2", os.getenv("g2_ver") or "3.4.5")) +load(pathJoin("esmf", os.getenv("esmf_ver") or "8.3.0b09")) +load(pathJoin("netcdf", os.getenv("netcdf_ver") or "4.7.4")) +load(pathJoin("libpng", os.getenv("libpng_ver") or "1.6.37")) +load(pathJoin("pio", os.getenv("pio_ver") or "2.5.3")) +load(pathJoin("fms", os.getenv("fms_ver") or "2022.01")) + +setenv("CMAKE_C_COMPILER","mpiicc") +setenv("CMAKE_CXX_COMPILER","mpiicpc") +setenv("CMAKE_Fortran_COMPILER","mpiifort") +setenv("CMAKE_Platform","cheyenne.gnu") +setenv("CC", "mpicc") +setenv("CXX", "mpicxx") +setenv("FC", "mpif90") + diff --git a/modulefiles/build_cheyenne_intel b/modulefiles/build_cheyenne_intel deleted file mode 100644 index 1e1e865542..0000000000 --- a/modulefiles/build_cheyenne_intel +++ /dev/null @@ -1,37 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the CISL Cheyenne machine using Intel-2022.1" -} - -module-whatis "Loads libraries needed for building SRW on Cheyenne" - -module load cmake/3.22.0 -module load python/3.7.9 -module load ncarenv/1.3 -module load intel/2022.1 -module load mpt/2.25 -module load mkl/2022.1 -module load ncarcompilers/0.5.0 -module unload netcdf - -module use /glade/work/epicufsrt/GMTB/tools/intel/2022.1/hpc-stack-v1.2.0_6eb6/modulefiles/stack -module load hpc/1.2.0 -module load hpc-intel/2022.1 -module load hpc-mpt/2.25 - -module load srw_common - -module load g2/3.4.5 -module load esmf/8.3.0b09 -module load mapl/2.11.0-esmf-8.3.0b09 -module load netcdf/4.7.4 -module load libpng/1.6.37 -module load pio/2.5.3 -module load fms/2022.01 - -setenv CMAKE_C_COMPILER mpicc -setenv CMAKE_CXX_COMPILER mpicxx -setenv CMAKE_Fortran_COMPILER mpif90 -setenv CMAKE_Platform cheyenne.intel diff --git a/modulefiles/build_cheyenne_intel.lua b/modulefiles/build_cheyenne_intel.lua new file mode 100644 index 0000000000..ae227cb5aa --- /dev/null +++ b/modulefiles/build_cheyenne_intel.lua @@ -0,0 +1,36 @@ +help([[ +This module loads libraries for building the UFS SRW App on +the CISL machine Cheyenne using Intel-2022.1 +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Cheyenne ]===]) + +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.22.0")) +load(pathJoin("python", os.getenv("python_ver") or "3.7.9")) +load(pathJoin("ncarenv", os.getenv("ncarenv_ver") or "1.3")) +load(pathJoin("intel", os.getenv("intel_ver") or "2022.1")) +load(pathJoin("mpt", os.getenv("mpt_ver") or "2.25")) +load(pathJoin("mkl", os.getenv("mkl_ver") or "2022.1")) +load(pathJoin("ncarcompilers", os.getenv("ncarcompilers_ver") or "0.5.0")) +unload("netcdf") + +prepend_path("MODULEPATH","/glade/work/epicufsrt/GMTB/tools/intel/2022.1/hpc-stack-v1.2.0_6eb6/modulefiles/stack") +load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0")) +load(pathJoin("hpc-intel", os.getenv("hpc_intel_ver") or "2022.1")) +load(pathJoin("hpc-mpt", os.getenv("hpc_mpt_ver") or "2.25")) + +load("srw_common") + +load(pathJoin("g2", os.getenv("g2_ver") or "3.4.5")) +load(pathJoin("esmf", os.getenv("esmf_ver") or "8.3.0b09")) +load(pathJoin("mapl", os.getenv("mapl_ver") or "2.11.0-esmf-8.3.0b09")) +load(pathJoin("netcdf", os.getenv("netcdf_ver") or "4.7.4")) +load(pathJoin("libpng", os.getenv("libpng_ver") or "1.6.37")) +load(pathJoin("pio", os.getenv("pio_ver") or "2.5.3")) +load(pathJoin("fms", os.getenv("fms_ver") or "2022.01")) + +setenv("CMAKE_C_COMPILER","mpiicc") +setenv("CMAKE_CXX_COMPILER","mpiicpc") +setenv("CMAKE_Fortran_COMPILER","mpiifort") +setenv("CMAKE_Platform","cheyenne.gnu") + diff --git a/modulefiles/build_gaea_intel b/modulefiles/build_gaea_intel deleted file mode 100644 index 6b2ef13a17..0000000000 --- a/modulefiles/build_gaea_intel +++ /dev/null @@ -1,27 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the NOAA RDHPC machine Gaea using Intel-2021.3.0" -} - -module use /lustre/f2/dev/role.epic/contrib/hpc-stack/intel-2021.3.0/modulefiles/stack -module load hpc/1.2.0 -module load intel/2021.3.0 -module load hpc-intel/2021.3.0 -module load hpc-cray-mpich/7.7.11 -#needed for WW3 build -module load gcc/8.3.0 - -module load srw_common -module load libpng/1.6.37 - -module load cmake/3.20.1 - -setenv CC cc -setenv FC ftn -setenv CXX CC -setenv CMAKE_C_COMPILER cc -setenv CMAKE_CXX_COMPILER CC -setenv CMAKE_Fortran_COMPILER ftn -setenv CMAKE_Platform gaea.intel diff --git a/modulefiles/build_gaea_intel.lua b/modulefiles/build_gaea_intel.lua new file mode 100644 index 0000000000..63105d0ab8 --- /dev/null +++ b/modulefiles/build_gaea_intel.lua @@ -0,0 +1,27 @@ +help([[ +This module loads libraries for building the UFS SRW App on +the NOAA RDHPC machine Gaea using Intel-2022.1.2 +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Gaea ]===]) + +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.20.1")) + +prepend_path("MODULEPATH","/lustre/f2/dev/role.epic/contrib/hpc-stack/intel-2021.3.0/modulefiles/stack") +load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0")) +load(pathJoin("intel", os.getenv("intel_ver") or "2021.3.0")) +load(pathJoin("hpc-intel", os.getenv("hpc_intel_ver") or "2021.3.0")) +load(pathJoin("hpc-cray-mpich", os.getenv("hpc_cray_mpich_ver") or "7.7.11")) +load(pathJoin("gcc", os.getenv("gcc_ver") or "8.3.0")) +load(pathJoin("libpng", os.getenv("libpng_ver") or "1.6.37")) + +load("srw_common") + +setenv("CC","cc") +setenv("FC","ftn") +setenv("CXX","CC") +setenv("CMAKE_C_COMPILER","cc") +setenv("CMAKE_CXX_COMPILER","CC") +setenv("CMAKE_Fortran_COMPILER","ftn") +setenv("CMAKE_Platform","gaea.intel") + diff --git a/modulefiles/build_hera_intel b/modulefiles/build_hera_intel deleted file mode 100644 index 275ef2fe32..0000000000 --- a/modulefiles/build_hera_intel +++ /dev/null @@ -1,31 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the NOAA RDHPC machine Hera using Intel-2022.1.2" -} - -module-whatis "Loads libraries needed for building SRW on Hera" - -module use /contrib/miniconda3/modulefiles -module load miniconda3/4.5.12 - -module use /contrib/sutils/modulefiles -module load sutils - -module load cmake/3.20.1 - -module use /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack -module load hpc/1.2.0 -module load hpc-intel/2022.1.2 -module load hpc-impi/2022.1.2 - -module load srw_common - -module load nccmp/1.8.9.0 -module load nco/4.9.3 - -setenv CMAKE_C_COMPILER mpiicc -setenv CMAKE_CXX_COMPILER mpiicpc -setenv CMAKE_Fortran_COMPILER mpiifort -setenv CMAKE_Platform hera.intel diff --git a/modulefiles/build_hera_intel.lua b/modulefiles/build_hera_intel.lua new file mode 100644 index 0000000000..69d74a0dd6 --- /dev/null +++ b/modulefiles/build_hera_intel.lua @@ -0,0 +1,27 @@ +help([[ +This module loads libraries for building the UFS SRW App on +the NOAA RDHPC machine Hera using Intel-2022.1.2 +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Hera ]===]) + +prepend_path("MODULEPATH","/contrib/sutils/modulefiles") +load("sutils") + +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.20.1")) + +prepend_path("MODULEPATH","/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack") +load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0")) +load(pathJoin("hpc-intel", os.getenv("hpc_intel_ver") or "2022.1.2")) +load(pathJoin("hpc-impi", os.getenv("hpc_impi_ver") or "2022.1.2")) + +load("srw_common") + +load(pathJoin("nccmp", os.getenv("nccmp_ver") or "1.8.9.0")) +load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3")) + +setenv("CMAKE_C_COMPILER","mpiicc") +setenv("CMAKE_CXX_COMPILER","mpiicpc") +setenv("CMAKE_Fortran_COMPILER","mpiifort") +setenv("CMAKE_Platform","hera.intel") + diff --git a/modulefiles/build_jet_intel b/modulefiles/build_jet_intel deleted file mode 100644 index 7a4da30519..0000000000 --- a/modulefiles/build_jet_intel +++ /dev/null @@ -1,31 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the NOAA RDHPC machine JET using Intel-2022.1.2" -} - -module-whatis "Loads libraries needed for building SRW on JET" - -module use /contrib/sutils/modulefiles -module load sutils - -module load cmake/3.20.1 - -module use /lfs4/HFIP/hfv3gfs/nwprod/hpc-stack/libs/modulefiles/stack - -module load hpc/1.2.0 -module load hpc-intel/2022.1.2 -module load hpc-impi/2022.1.2 - -module load srw_common - -module load nccmp/1.8.9.0 -module load prod_util/1.2.2 -module load nco/4.9.3 - -setenv CMAKE_C_COMPILER mpiicc -setenv CMAKE_CXX_COMPILER mpiicpc -setenv CMAKE_Fortran_COMPILER mpiifort -setenv CMAKE_Platform jet.intel - diff --git a/modulefiles/build_jet_intel.lua b/modulefiles/build_jet_intel.lua new file mode 100644 index 0000000000..a2fbeadf60 --- /dev/null +++ b/modulefiles/build_jet_intel.lua @@ -0,0 +1,28 @@ +help([[ +This module loads libraries for building the UFS SRW App on +the NOAA RDHPC machine Jet using Intel-2022.1.2 +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Jet ]===]) + +prepend_path("MODULEPATH","/contrib/sutils/modulefiles") +load("sutils") + +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.20.1")) + +prepend_path("MODULEPATH","/lfs4/HFIP/hfv3gfs/nwprod/hpc-stack/libs/modulefiles/stack") +load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0")) +load(pathJoin("hpc-intel", os.getenv("hpc_intel_ver") or "2022.1.2")) +load(pathJoin("hpc-impi", os.getenv("hpc_impi_ver") or "2022.1.2")) + +load("srw_common") + +load(pathJoin("prod_util", os.getenv("prod_util_ver") or "1.2.2")) +load(pathJoin("nccmp", os.getenv("nccmp_ver") or "1.8.9.0")) +load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3")) + +setenv("CMAKE_C_COMPILER","mpiicc") +setenv("CMAKE_CXX_COMPILER","mpiicpc") +setenv("CMAKE_Fortran_COMPILER","mpiifort") +setenv("CMAKE_Platform","jet.intel") + diff --git a/modulefiles/build_linux_gnu b/modulefiles/build_linux_gnu deleted file mode 100644 index 0845311fd3..0000000000 --- a/modulefiles/build_linux_gnu +++ /dev/null @@ -1,91 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module needs to be customized for the user's Linux environment:" - puts stderr "specify compilers, path for HPC-stack, load the modules, set compiler and linker flags" -} - -module-whatis "Loads libraries needed for building SRW on Linux" - -# This path should point to your HPCstack installation directory -setenv HPCstack "/home/username/hpc-stack/install" - -# Load HPC stack -module use $env(HPCstack)/modulefiles/stack -module load hpc -module load hpc-python -# -module load hpc-gnu -module load openmpi -module load hpc-openmpi - -module load jasper/2.0.25 -module load zlib/1.2.11 - -module load hdf5/1.10.6 -module load netcdf/4.7.4 -module load pio/2.5.3 -module load esmf/8.3.0b09 -module load fms/2022.01 - -module load bacio/2.4.1 -module load crtm/2.3.0 -module load g2/3.4.3 -module load g2tmpl/1.10.0 -module load ip/3.3.3 -module load sp/2.3.3 -module load w3nco/2.4.1 -module load upp/10.0.10 - -module load gftl-shared/1.3.3 -module load yafyaml/0.5.1 -module load mapl/2.11.0-esmf-8.3.0b09 -module load gfsio/1.4.1 -module load landsfcutil/2.4.1 -module load nemsio/2.5.2 -module load nemsiogfs/2.5.3 -module load sfcio/1.4.1 -module load sigio/2.3.2 -module load w3emc/2.7.3 -module load wgrib2/2.0.8 - -# Set the env. variables for the serial compilers (CC, FC, CXX), if not present -setenv CC "/usr/local/bin/gcc" -setenv FC "/usr/local/bin/gfortran" -setenv CXX "/usr/local/bin/g++" - -# Set MPI compilers depending on the MPI libraries built: -setenv MPI_CC mpicc -setenv MPI_CXX mpicxx -setenv MPI_FC mpif90 - -# Set compilers and platform names for CMake: -setenv CMAKE_C_COMPILER $env(MPI_CC) -setenv CMAKE_CXX_COMPILER $env(MPI_CXX) -setenv CMAKE_Fortran_COMPILER $env(MPI_FC) - -setenv CMAKE_Platform linux.gnu -#setenv CMAKE_Platform linux.intel - -setenv CMAKE_Fortran_COMPILER_ID "GNU" -#setenv CMAKE_Fortran_COMPILER_ID "Intel" - -# Set compiler and linker flags if needed: -setenv FFLAGS " -fallow-argument-mismatch" - -if { [module-info mode load] } { - puts stderr "This module needs to be customized for the user's Linux environment:" - puts stderr "load the environment modules if present, hpc-stack modules," - puts stderr "specify compilers, path for HPC-stack and SRW directory on Linux systems" - puts stderr "1) env. variable HPCstack is the hpc-stack installation directory" - puts stderr "2) Load the modules build with the hpc-stack on your system" - puts stderr "3) Specify compilers, compiler and linker flags, and a platform name" - puts stderr " The example below is for the GNU compilers built with OpenMPI libraries" - puts stderr " " - puts stderr "NB: After the module is customized, comment out the this line and the `puts stderr` lines above" - puts stderr " " - puts stderr "Please export env. variable LDFLAGS after the module is successfully loaded: - > export LDFLAGS=\"-L\$MPI_ROOT/lib \" " -} - - diff --git a/modulefiles/build_linux_gnu.lua b/modulefiles/build_linux_gnu.lua new file mode 100644 index 0000000000..5ad0561ed7 --- /dev/null +++ b/modulefiles/build_linux_gnu.lua @@ -0,0 +1,87 @@ +help([[ +This module needs to be customized for the user's Linux environment: +specify compilers, path for HPC-stack, load the modules, set compiler and linker flags +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Linux ]===]) + +-- This path should point to your HPCstack installation directory +local HPCstack="/home/username/hpc-stack/install" + +-- Load HPC stack +prepend_path("MODULEPATH", pathJoin(HPCstack, "modulefiles/stack")) +load("hpc") +load("hpc-python") + +load("hpc-gnu") +load("openmpi") +load("hpc-openmpi") + +load("jasper/2.0.25") +load("zlib/1.2.11") + +load("hdf5/1.10.6") +load("netcdf/4.7.4") +load("pio/2.5.3") +load("esmf/8.3.0b09") +load("fms/2022.01") + +load("bacio/2.4.1") +load("crtm/2.3.0") +load("g2/3.4.3") +load("g2tmpl/1.10.0") +load("ip/3.3.3") +load("sp/2.3.3") +load("w3nco/2.4.1") +load("upp/10.0.10") + +load("gftl-shared/1.3.3") +load("yafyaml/0.5.1") +load("mapl/2.11.0-esmf-8.3.0b09") +load("gfsio/1.4.1") +load("landsfcutil/2.4.1") +load("nemsio/2.5.2") +load("nemsiogfs/2.5.3") +load("sfcio/1.4.1") +load("sigio/2.3.2") +load("w3emc/2.7.3") +load("wgrib2/2.0.8") + +-- Set the env. variables for the serial compilers (CC, FC, CXX), if not present +setenv("CC", "/usr/local/bin/gcc") +setenv("FC", "/usr/local/bin/gfortran") +setenv("CXX", "/usr/local/bin/g++") + +-- Set MPI compilers depending on the MPI libraries built: +local MPI_CC="mpicc" +local MPI_CXX="mpicxx" +local MPI_FC="mpif90" + +-- Set compilers and platform names for CMake: +setenv("CMAKE_C_COMPILER", MPI_CC) +setenv("CMAKE_CXX_COMPILER", MPI_CXX) +setenv("CMAKE_Fortran_COMPILER", MPI_FC) + +setenv("CMAKE_Platform", "linux.gnu") +--setenv("CMAKE_Platform", "linux.intel") + +setenv("CMAKE_Fortran_COMPILER_ID", "GNU") +--setenv("CMAKE_Fortran_COMPILER_ID", "Intel") + +-- Set compiler and linker flags if needed: +setenv("FFLAGS", " -fallow-argument-mismatch") + +if mode() == "load" then + LmodMsgRaw([===[ + This module needs to be customized for the user's Linux environment: + load the environment modules if present, hpc-stack modules, + specify compilers, path for HPC-stack and SRW directory on Linux systems + 1) env. variable HPCstack is the hpc-stack installation directory + 2) Load the modules build with the hpc-stack on your system + 3) Specify compilers, compiler and linker flags, and a platform name + The example below is for the GNU compilers built with OpenMPI libraries + NB: After the module is customized, comment out the this line and lines above + Please export env. variable LDFLAGS after the module is successfully loaded: + > export LDFLAGS=\"-L\$MPI_ROOT/lib \" + ]===]) +end diff --git a/modulefiles/build_macos_gnu b/modulefiles/build_macos_gnu deleted file mode 100644 index 613d361aae..0000000000 --- a/modulefiles/build_macos_gnu +++ /dev/null @@ -1,90 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module needs to be customized for the user's MacOS environment:" - puts stderr "specify compilers, path for HPC-stack, load the modules, set compiler and linker flags" - puts stderr "Option 1: M1/arm64 platform, OS BigSur, Monterey (Darwin 20,21) " - puts stderr "Option 2: Intel/x86_64 platform, OS Catalina (Darwin 19) " - puts stderr " " -} - -module-whatis "Loads libraries needed for building SRW on Hera" - -if { [module-info mode load] } { - puts "ulimit -S -s unlimited;" -} - -# This path should point to your HPCstack installation directory -setenv HPCstack "/Users/username/hpc-stack/install" - -# Load HPC stack -module use $env(HPCstack)/modulefiles/stack -module load hpc -module load hpc-python -# -module load hpc-gnu -module load openmpi -module load hpc-openmpi - -module load jasper/2.0.25 -module load zlib/1.2.11 - -module load hdf5/1.10.6 -module load netcdf/4.7.4 -module load pio/2.5.3 -module load esmf/8.3.0b09 -module load fms/2022.01 - -module load bacio/2.4.1 -module load crtm/2.3.0 -module load g2/3.4.3 -module load g2tmpl/1.10.0 -module load ip/3.3.3 -module load sp/2.3.3 -module load w3nco/2.4.1 -module load upp/10.0.10 - -module load gftl-shared/1.3.3 -module load yafyaml/0.5.1 -module load mapl/2.12.2-esmf-8.3.0b09 -module load gfsio/1.4.1 -module load landsfcutil/2.4.1 -module load nemsio/2.5.4 -module load nemsiogfs/2.5.3 -module load sfcio/1.4.1 -module load sigio/2.3.2 -module load w3emc/2.9.2 -module load wgrib2/2.0.8 -module list - -# Option 1 compiler paths: -setenv CC "/opt/homebrew/bin/gcc" -setenv FC "/opt/homebrew/bin/gfortran" -setenv CXX "/opt/homebrew/bin/g++" - -# Option 2 compiler paths: -#setenv CC "/usr/local/bin/gcc" -#setenv FC "/usr/local/bin/gfortran" -#setenv CXX "/usr/local/bin/g++" - -setenv MPI_CC mpicc -setenv MPI_CXX mpicxx -setenv MPI_FC mpif90 - -setenv CMAKE_C_COMPILER $env(MPI_CC) -setenv CMAKE_CXX_COMPILER $env(MPI_CXX) -setenv CMAKE_Fortran_COMPILER $env(MPI_FC) -setenv CMAKE_Platform macos.gnu - -setenv CMAKE_Fortran_COMPILER_ID "GNU" -setenv FFLAGS "-DNO_QUAD_PRECISION -fallow-argument-mismatch " - -# export the env. variable LDFLAGS after loading the current module -# export LDFLAGS="-L$MPI_ROOT/lib" -if { [module-info mode load] } { - puts stderr " " - puts stderr "Please export env. variable LDFLAGS after the module is successfully loaded: - > export LDFLAGS=\"-L\$MPI_ROOT/lib \" " -} - - diff --git a/modulefiles/build_macos_gnu.lua b/modulefiles/build_macos_gnu.lua new file mode 100644 index 0000000000..e964a26099 --- /dev/null +++ b/modulefiles/build_macos_gnu.lua @@ -0,0 +1,97 @@ +help([[ +This module needs to be customized for the user's Linux environment: +specify compilers, path for HPC-stack, load the modules, set compiler and linker flags + Option 1: M1/arm64 platform, OS BigSur, Monterey (Darwin 20,21) + Option 2: Intel/x86_64 platform, OS Catalina (Darwin 19) +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on macos ]===]) + +if mode() == "load" then + execute{cmd="ulimit -S -s unlimited", modeA={"load"}} +end + +-- This path should point to your HPCstack installation directory +local HPCstack="/Users/username/hpc-stack/install" + +-- Load HPC stack +prepend_path("MODULEPATH", pathJoin(HPCstack, "modulefiles/stack")) +load("hpc") +load("hpc-python") + +load("hpc-gnu") +load("openmpi") +load("hpc-openmpi") + +load("jasper/2.0.25") +load("zlib/1.2.11") + +load("hdf5/1.10.6") +load("netcdf/4.7.4") +load("pio/2.5.3") +load("esmf/8.3.0b09") +load("fms/2022.01") + +load("bacio/2.4.1") +load("crtm/2.3.0") +load("g2/3.4.3") +load("g2tmpl/1.10.0") +load("ip/3.3.3") +load("sp/2.3.3") +load("w3nco/2.4.1") +load("upp/10.0.10") + +load("gftl-shared/1.3.3") +load("yafyaml/0.5.1") +load("mapl/2.12.2-esmf-8.3.0b09") +load("gfsio/1.4.1") +load("landsfcutil/2.4.1") +load("nemsio/2.5.4") +load("nemsiogfs/2.5.3") +load("sfcio/1.4.1") +load("sigio/2.3.2") +load("w3emc/2.9.2") +load("wgrib2/2.0.8") + +-- Option 1 compiler paths: +setenv("CC", "/opt/homebrew/bin/gcc") +setenv("FC", "/opt/homebrew/bin/gfortran") +setenv("CXX", "/opt/homebrew/bin/g++") + +-- Option 2 compiler paths: +--[[ +setenv("CC", "/usr/local/bin/gcc") +setenv("FC", "/usr/local/bin/gfortran") +setenv("CXX", "/usr/local/bin/g++") +--]] +-- +-- Set MPI compilers depending on the MPI libraries built: +local MPI_CC="mpicc" +local MPI_CXX="mpicxx" +local MPI_FC="mpif90" + + +-- Set compilers and platform names for CMake: +setenv("CMAKE_C_COMPILER", MPI_CC) +setenv("CMAKE_CXX_COMPILER", MPI_CXX) +setenv("CMAKE_Fortran_COMPILER", MPI_FC) + +setenv("CMAKE_Platform", "macos.gnu") +--setenv("CMAKE_Platform", "macos.intel") + +setenv("CMAKE_Fortran_COMPILER_ID", "GNU") +--setenv("CMAKE_Fortran_COMPILER_ID", "Intel") + +-- Set compiler and linker flags if needed: +setenv("FFLAGS", " -DNO_QUAD_PRECISION -fallow-argument-mismatch ") + +-- export the env. variable LDFLAGS after loading the current module +-- export LDFLAGS="-L$MPI_ROOT/lib" +if mode() == "load" then + LmodMsgRaw([===[ + Please export env. variable LDFLAGS after the module is successfully loaded: + > export LDFLAGS=\"-L\$MPI_ROOT/lib \" " + ]===]) +end + + diff --git a/modulefiles/build_noaacloud_intel b/modulefiles/build_noaacloud_intel deleted file mode 100644 index ccf2c4bb67..0000000000 --- a/modulefiles/build_noaacloud_intel +++ /dev/null @@ -1,14 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the NOAA cloud using Intel-oneapi" -} - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load cmake/3.22.1 - -module load srw_common -module load esmf/8.2.0 diff --git a/modulefiles/build_noaacloud_intel.lua b/modulefiles/build_noaacloud_intel.lua new file mode 100644 index 0000000000..cb1205a42b --- /dev/null +++ b/modulefiles/build_noaacloud_intel.lua @@ -0,0 +1,18 @@ +help([[ +This load("s libraries for building the UFS SRW App on +the NOAA cloud using Intel-oneapi +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on NOAA cloud ]===]) + +prepend_path("MODULEPATH", "/contrib/spack-stack/apps/srw-app-test/modulefiles/Core") +load("stack-intel") +load("stack-intel-oneapi-mpi") +load("cmake/3.22.1") + +load("srw_common") +load("esmf/8.2.0") +load("netcdf-c") +load("netcdf-fortran") +load("libpng") +load("jasper") diff --git a/modulefiles/build_odin_intel b/modulefiles/build_odin_intel deleted file mode 100644 index 25120a2af4..0000000000 --- a/modulefiles/build_odin_intel +++ /dev/null @@ -1,54 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the NSSL machine odin using Intel" -} - -module-whatis "Loads libraries needed for building SRW on odin" - -prepend-path PATH "/home/yunheng.wang/tools/cmake-3.23.0-rc2/bin" -setenv CMAKE "/home/yunheng.wang/tools/cmake-3.23.0-rc2/bin/cmake" - -module load hpc/1.2.0 -module load hpc-intel -module load hpc-cray-mpich - -#module load srw_common - -module load jasper -module load zlib -module load png - -#module load cray-hdf5 -#module load cray-netcdf -module load esmf -module load fms - -module load bacio -module load crtm -module load g2 -module load g2tmpl -module load ip -module load sp -module load w3nco -module load upp - -module load gftl-shared -module load yafyaml -module load mapl - -module load gfsio -module load landsfcutil -module load nemsio -module load nemsiogfs -module load sfcio -module load sigio -module load w3emc -module load wgrib2 - -setenv CMAKE_C_COMPILER cc -setenv CMAKE_CXX_COMPILER CC -setenv CMAKE_Fortran_COMPILER ftn -setenv CMAKE_Platform odin.intel - diff --git a/modulefiles/build_odin_intel.lua b/modulefiles/build_odin_intel.lua new file mode 100644 index 0000000000..f4059a868a --- /dev/null +++ b/modulefiles/build_odin_intel.lua @@ -0,0 +1,52 @@ +help([[ +This module loads libraries for building the UFS SRW App on +the NSSL machine Odin using Intel +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Odin ]===]) + +prepend_path("PATH","/home/yunheng.wang/tools/cmake-3.23.0-rc2/bin") +setenv("CMAKE","/home/yunheng.wang/tools/cmake-3.23.0-rc2/bin/cmake") + +load("hpc/1.2.0") +load("hpc-intel") +load("hpc-cray-mpich") + +--load("srw_common") + +load("jasper") +load("zlib") +load("png") + +--load("cray-hdf5") +--load("cray-netcdf") +load("esmf") +load("fms") + +load("bacio") +load("crtm") +load("g2") +load("g2tmpl") +load("ip") +load("sp") +load("w3nco") +load("upp") + +load("gftl-shared") +load("yafyaml") +load("mapl") + +load("gfsio") +load("landsfcutil") +load("nemsio") +load("nemsiogfs") +load("sfcio") +load("sigio") +load("w3emc") +load("wgrib2") + +setenv("CMAKE_C_COMPILER","cc") +setenv("CMAKE_CXX_COMPILER","CC") +setenv("CMAKE_Fortran_COMPILER","ftn") +setenv("CMAKE_Platform","odin.intel") + diff --git a/modulefiles/build_orion_intel b/modulefiles/build_orion_intel deleted file mode 100644 index f2171a4a53..0000000000 --- a/modulefiles/build_orion_intel +++ /dev/null @@ -1,28 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the MSU machineOrion using Intel-2022.1.2" -} - -module-whatis "Loads libraries needed for building SRW on Orion" - -module load contrib noaatools - -module load cmake/3.22.1 -module load python/3.9.2 - -module use /apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack -module load hpc/1.2.0 -module load hpc-intel/2022.1.2 -module load hpc-impi/2022.1.2 - -module load srw_common - -module load nccmp/1.8.9.0 -module load nco/4.9.3 - -setenv CMAKE_C_COMPILER mpiicc -setenv CMAKE_CXX_COMPILER mpiicpc -setenv CMAKE_Fortran_COMPILER mpiifort -setenv CMAKE_Platform orion.intel diff --git a/modulefiles/build_orion_intel.lua b/modulefiles/build_orion_intel.lua new file mode 100644 index 0000000000..ff73910fb8 --- /dev/null +++ b/modulefiles/build_orion_intel.lua @@ -0,0 +1,28 @@ +help([[ +This module loads libraries for building the UFS SRW App on +the MSU machine Orion using Intel-2022.1.2 +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on Orion ]===]) + +load("contrib") +load("noaatools") + +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.20.1")) +load(pathJoin("python", os.getenv("python_ver") or "3.9.2")) + +prepend_path("MODULEPATH","/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack") +load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0")) +load(pathJoin("hpc-intel", os.getenv("hpc_intel_ver") or "2022.1.2")) +load(pathJoin("hpc-impi", os.getenv("hpc_impi_ver") or "2022.1.2")) + +load("srw_common") + +load(pathJoin("nccmp", os.getenv("nccmp_ver") or "1.8.9.0")) +load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3")) + +setenv("CMAKE_C_COMPILER","mpiicc") +setenv("CMAKE_CXX_COMPILER","mpiicpc") +setenv("CMAKE_Fortran_COMPILER","mpiifort") +setenv("CMAKE_Platform","orion.intel") + diff --git a/modulefiles/build_singularity_gnu b/modulefiles/build_singularity_gnu deleted file mode 100644 index 9a28fc1ab1..0000000000 --- a/modulefiles/build_singularity_gnu +++ /dev/null @@ -1,43 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW in a singularity container" - puts stderr "using Gnu 9.3.0 built from this docker image:" - puts stderr " docker://noaaepic/ubuntu20.04-epic-srwapp:1.0" - puts stderr "https://hub.docker.com/r/noaaepic/ubuntu20.04-epic-srwapp" -} - -module-whatis "Loads libraries needed for building SRW in a singularity container" - -module use /opt/hpc-modules/modulefiles/stack - -module load hpc -module load hpc-gnu -module load hpc-openmpi - -module load netcdf -module load hdf5 -module load bacio -module load sfcio -module load sigio -module load nemsio -module load w3emc -module load esmf -module load fms -module load crtm -module load g2 -module load png -module load zlib -module load g2tmpl -module load ip -module load sp -module load w3nco -module load cmake -module load gfsio -module load wgrib2 -module load upp - -setenv CMAKE_C_COMPILER mpicc -setenv CMAKE_CXX_COMPILER mpicxx -setenv CMAKE_Fortran_COMPILER mpif90 -setenv CMAKE_Platform singularity.gnu diff --git a/modulefiles/build_singularity_gnu.lua b/modulefiles/build_singularity_gnu.lua new file mode 100644 index 0000000000..434ac448d4 --- /dev/null +++ b/modulefiles/build_singularity_gnu.lua @@ -0,0 +1,40 @@ +help([[ +This module loads libraries for building the UFS SRW App in +a singularity container +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App in singularity container ]===]) + +prepend_path("MODULEPATH","/opt/hpc-modules/modulefiles/stack") + +load("hpc") +load("hpc-gnu") +load("hpc-openmpi") + +load("netcdf") +load("hdf5") +load("bacio") +load("sfcio") +load("sigio") +load("nemsio") +load("w3emc") +load("esmf") +load("fms") +load("crtm") +load("g2") +load("png") +load("zlib") +load("g2tmpl") +load("ip") +load("sp") +load("w3nco") +load("cmake") +load("gfsio") +load("wgrib2") +load("upp") + +setenv("CMAKE_C_COMPILER","mpiicc") +setenv("CMAKE_CXX_COMPILER","mpicxx") +setenv("CMAKE_Fortran_COMPILER","mpif90") +setenv("CMAKE_Platform","singularity.gnu") + diff --git a/modulefiles/build_wcoss2_intel b/modulefiles/build_wcoss2_intel deleted file mode 100644 index 8e771b6a80..0000000000 --- a/modulefiles/build_wcoss2_intel +++ /dev/null @@ -1,51 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module loads libraries for building SRW on" - puts stderr "the NOAA WCOSS2 machine using Intel-19.1.3.304" -} - -module-whatis "Loads libraries needed for building SRW on WCOSS2 (Cactus/Dogwood)" - -module load envvar/$::env(envvar_ver) - -module load PrgEnv-intel/$::env(PrgEnv_intel_ver) -module load intel/$::env(intel_ver) -module load craype/$::env(craype_ver) -module load cray-mpich/$::env(cray_mpich_ver) - -module load cmake/$::env(cmake_ver) - -setenv HPC_OPT /apps/ops/para/libs -module use /apps/ops/para/libs/modulefiles/compiler/intel/$::env(intel_ver) -module use /apps/ops/para/libs/modulefiles/mpi/intel/$::env(intel_ver)/cray-mpich/$::env(cray_mpich_ver) - -module load jasper/$::env(jasper_ver) -module load zlib/$::env(zlib_ver) -module load libpng/$::env(libpng_ver) -module load hdf5/$::env(hdf5_ver) -module load netcdf/$::env(netcdf_ver) -module load pio/$::env(pio_ver) -module load esmf/$::env(esmf_ver) -module load fms/$::env(fms_ver) -module load bacio/$::env(bacio_ver) -module load crtm/$::env(crtm_ver) -module load g2/$::env(g2_ver) -module load g2tmpl/$::env(g2tmpl_ver) -module load ip/$::env(ip_ver) -module load sp/$::env(sp_ver) -module load w3nco/$::env(w3nco_ver) - -module load libjpeg/$::env(libjpeg_ver) -module load cray-pals/$::env(cray_pals_ver) - -module load w3emc/$::env(w3emc_ver) -module load nemsio/$::env(nemsio_ver) -module load sigio/$::env(sigio_ver) -module load sfcio/$::env(sfcio_ver) -module load wrf_io/$::env(wrf_io_ver) - -setenv CMAKE_C_COMPILER cc -setenv CMAKE_CXX_COMPILER CC -setenv CMAKE_Fortran_COMPILER ftn -setenv CMAKE_Platform wcoss2 diff --git a/modulefiles/build_wcoss2_intel.lua b/modulefiles/build_wcoss2_intel.lua new file mode 100644 index 0000000000..c8956142ee --- /dev/null +++ b/modulefiles/build_wcoss2_intel.lua @@ -0,0 +1,49 @@ +help([[ +This loads libraries for building the UFS SRW App on +the NOAA operational machine WCOSS2 using Intel-19.1.3.304 +]]) + +whatis([===[Loads libraries needed for building the UFS SRW App on WCOSS2 ]===]) + +load(pathJoin("envvar", os.getenv("envvar_ver"))) + +load(pathJoin("PrgEnv-intel", os.getenv("PrgEnv_intel_ver"))) +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("craype", os.getenv("craype_ver"))) +load(pathJoin("cray-mpich", os.getenv("cray_mpich_ver"))) + +load(pathJoin("cmake", os.getenv("cmake_ver"))) + +setenv("HPC_OPT","/apps/ops/para/libs") +prepend_path("MODULEPATH", pathJoin("/apps/ops/para/libs/modulefiles/compiler/intel", os.getenv("intel_ver"))) +prepend_path("MODULEPATH", pathJoin("/apps/ops/para/libs/modulefiles/mpi/intel", os.getenv("intel_ver"), "cray-mpich", os.getenv("cray_mpich_ver"))) + +load(pathJoin("jasper", os.getenv("jasper_ver"))) +load(pathJoin("zlib", os.getenv("zlib_ver"))) +load(pathJoin("libpng", os.getenv("libpng_ver"))) +load(pathJoin("hdf5", os.getenv("hdf5_ver"))) +load(pathJoin("netcdf", os.getenv("netcdf_ver"))) +load(pathJoin("pio", os.getenv("pio_ver"))) +load(pathJoin("esmf", os.getenv("esmf_ver"))) +load(pathJoin("fms", os.getenv("fms_ver"))) +load(pathJoin("bacio", os.getenv("bacio_ver"))) +load(pathJoin("crtm", os.getenv("crtm_ver"))) +load(pathJoin("g2", os.getenv("g2_ver"))) +load(pathJoin("g2tmpl", os.getenv("g2tmpl_ver"))) +load(pathJoin("ip", os.getenv("ip_ver"))) +load(pathJoin("sp", os.getenv("sp_ver"))) +load(pathJoin("w3nco", os.getenv("w3nco_ver"))) + +load(pathJoin("libjpeg", os.getenv("libjpeg_ver"))) +load(pathJoin("cray-pals", os.getenv("cray_pals_ver"))) + +load(pathJoin("w3emc", os.getenv("w3emc_ver"))) +load(pathJoin("nemsio", os.getenv("nemsio_ver"))) +load(pathJoin("sigio", os.getenv("sigio_ver"))) +load(pathJoin("sfcio", os.getenv("sfcio_ver"))) +load(pathJoin("wrf_io", os.getenv("wrf_io_ver"))) + +setenv("CMAKE_C_COMPILER","cc") +setenv("CMAKE_CXX_COMPILER","CC") +setenv("CMAKE_Fortran_COMPILER","ftn") +setenv("CMAKE_Platform","wcoss2") diff --git a/modulefiles/srw_common b/modulefiles/srw_common deleted file mode 100644 index 9c3ece42fc..0000000000 --- a/modulefiles/srw_common +++ /dev/null @@ -1,33 +0,0 @@ -#%Module - -module load jasper/2.0.25 -module load zlib/1.2.11 -module load-any png/1.6.35 libpng/1.6.37 - -module load-any netcdf/4.7.4 netcdf-c/4.7.4 -module load-any netcdf/4.7.4 netcdf-fortran/4.5.4 -module load-any pio/2.5.3 parallelio/2.5.2 -module load-any esmf/8.3.0b09 esmf/8.2.0 -module load fms/2022.01 - -module load bufr/11.7.0 -module load bacio/2.4.1 -module load crtm/2.3.0 -module load g2/3.4.5 -module load g2tmpl/1.10.0 -module load ip/3.3.3 -module load sp/2.3.3 -module load w3emc/2.9.2 - -module load-any gftl-shared/v1.5.0 gftl-shared/1.5.0 -module load-any yafyaml/v0.5.1 yafyaml/0.5.1 -module load-any mapl/2.22.0-esmf-8.3.0b09 mapl/2.11.0-esmf-8.2.0 - -module load nemsio/2.5.4 -module load sfcio/1.4.1 -module load sigio/2.3.2 -module load w3nco/2.4.1 -module load wrf_io/1.2.0 - -module load ncio/1.1.2 -module load wgrib2/2.0.8 diff --git a/modulefiles/srw_common.lua b/modulefiles/srw_common.lua new file mode 100644 index 0000000000..622f497342 --- /dev/null +++ b/modulefiles/srw_common.lua @@ -0,0 +1,31 @@ +load("jasper/2.0.25") +load("zlib/1.2.11") +load_any("png/1.6.35", "libpng/1.6.37") + +load_any("netcdf/4.7.4", "netcdf-c/4.7.4") +load_any("netcdf/4.7.4", "netcdf-fortran/4.5.4") +load_any("pio/2.5.3", "parallelio/2.5.2") +load_any("esmf/8.3.0b09", "esmf/8.2.0") +load("fms/2022.01") + +load("bufr/11.7.0") +load("bacio/2.4.1") +load("crtm/2.3.0") +load("g2/3.4.5") +load("g2tmpl/1.10.0") +load("ip/3.3.3") +load("sp/2.3.3") +load("w3emc/2.9.2") + +load_any("gftl-shared/v1.5.0", "gftl-shared/1.5.0") +load_any("yafyaml/v0.5.1", "yafyaml/0.5.1") +load_any("mapl/2.22.0-esmf-8.3.0b09", "mapl/2.11.0-esmf-8.2.0") + +load("nemsio/2.5.4") +load("sfcio/1.4.1") +load("sigio/2.3.2") +load("w3nco/2.4.1") +load("wrf_io/1.2.0") + +load("ncio/1.1.2") +load("wgrib2/2.0.8") diff --git a/modulefiles/tasks/cheyenne/conda_regional_workflow b/modulefiles/tasks/cheyenne/conda_regional_workflow deleted file mode 100644 index e490af9091..0000000000 --- a/modulefiles/tasks/cheyenne/conda_regional_workflow +++ /dev/null @@ -1,5 +0,0 @@ -#%Module -module unload python -module load conda -setenv SRW_ENV /glade/p/ral/jntp/UFS_SRW_app/conda/regional_workflow - diff --git a/modulefiles/tasks/cheyenne/conda_regional_workflow.lua b/modulefiles/tasks/cheyenne/conda_regional_workflow.lua new file mode 100644 index 0000000000..53ba3f6936 --- /dev/null +++ b/modulefiles/tasks/cheyenne/conda_regional_workflow.lua @@ -0,0 +1,3 @@ +unload("python") +load("conda") +setenv("SRW_ENV", "/glade/p/ral/jntp/UFS_SRW_app/conda/regional_workflow") diff --git a/modulefiles/tasks/cheyenne/get_extrn_ics.local b/modulefiles/tasks/cheyenne/get_extrn_ics.local deleted file mode 100644 index 7f0ed16e4f..0000000000 --- a/modulefiles/tasks/cheyenne/get_extrn_ics.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load conda_regional_workflow - diff --git a/modulefiles/tasks/cheyenne/get_extrn_ics.local.lua b/modulefiles/tasks/cheyenne/get_extrn_ics.local.lua new file mode 100644 index 0000000000..494c85136d --- /dev/null +++ b/modulefiles/tasks/cheyenne/get_extrn_ics.local.lua @@ -0,0 +1 @@ +load("conda_regional_workflow") diff --git a/modulefiles/tasks/cheyenne/get_extrn_lbcs.local b/modulefiles/tasks/cheyenne/get_extrn_lbcs.local deleted file mode 100644 index 7f0ed16e4f..0000000000 --- a/modulefiles/tasks/cheyenne/get_extrn_lbcs.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load conda_regional_workflow - diff --git a/modulefiles/tasks/cheyenne/get_extrn_lbcs.local.lua b/modulefiles/tasks/cheyenne/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..494c85136d --- /dev/null +++ b/modulefiles/tasks/cheyenne/get_extrn_lbcs.local.lua @@ -0,0 +1 @@ +load("conda_regional_workflow") diff --git a/modulefiles/tasks/cheyenne/make_grid.local b/modulefiles/tasks/cheyenne/make_grid.local deleted file mode 100644 index e708b857cc..0000000000 --- a/modulefiles/tasks/cheyenne/make_grid.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load conda_regional_workflow diff --git a/modulefiles/tasks/cheyenne/make_grid.local.lua b/modulefiles/tasks/cheyenne/make_grid.local.lua new file mode 100644 index 0000000000..494c85136d --- /dev/null +++ b/modulefiles/tasks/cheyenne/make_grid.local.lua @@ -0,0 +1 @@ +load("conda_regional_workflow") diff --git a/modulefiles/tasks/cheyenne/make_ics.local b/modulefiles/tasks/cheyenne/make_ics.local deleted file mode 100644 index e708b857cc..0000000000 --- a/modulefiles/tasks/cheyenne/make_ics.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load conda_regional_workflow diff --git a/modulefiles/tasks/cheyenne/make_ics.local.lua b/modulefiles/tasks/cheyenne/make_ics.local.lua new file mode 100644 index 0000000000..494c85136d --- /dev/null +++ b/modulefiles/tasks/cheyenne/make_ics.local.lua @@ -0,0 +1 @@ +load("conda_regional_workflow") diff --git a/modulefiles/tasks/cheyenne/make_lbcs.local b/modulefiles/tasks/cheyenne/make_lbcs.local deleted file mode 100644 index e708b857cc..0000000000 --- a/modulefiles/tasks/cheyenne/make_lbcs.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load conda_regional_workflow diff --git a/modulefiles/tasks/cheyenne/make_lbcs.local.lua b/modulefiles/tasks/cheyenne/make_lbcs.local.lua new file mode 100644 index 0000000000..494c85136d --- /dev/null +++ b/modulefiles/tasks/cheyenne/make_lbcs.local.lua @@ -0,0 +1 @@ +load("conda_regional_workflow") diff --git a/modulefiles/tasks/cheyenne/make_orog.hardcoded b/modulefiles/tasks/cheyenne/make_orog.hardcoded deleted file mode 100644 index 51c59c5ee4..0000000000 --- a/modulefiles/tasks/cheyenne/make_orog.hardcoded +++ /dev/null @@ -1,9 +0,0 @@ -#%Module##################################################### - -module purge - -module load ncarenv/1.3 -module load intel/19.0.2 -module load ncarcompilers/0.5.0 -module load netcdf/4.6.3 - diff --git a/modulefiles/tasks/cheyenne/make_orog.hardcoded.lua b/modulefiles/tasks/cheyenne/make_orog.hardcoded.lua new file mode 100644 index 0000000000..2395a81c8e --- /dev/null +++ b/modulefiles/tasks/cheyenne/make_orog.hardcoded.lua @@ -0,0 +1,4 @@ +load("ncarenv/1.3") +load("intel/19.0.2") +load("ncarcompilers/0.5.0") +load("netcdf/4.6.3") diff --git a/modulefiles/tasks/cheyenne/run_fcst.local b/modulefiles/tasks/cheyenne/run_fcst.local deleted file mode 100644 index e708b857cc..0000000000 --- a/modulefiles/tasks/cheyenne/run_fcst.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load conda_regional_workflow diff --git a/modulefiles/tasks/cheyenne/run_fcst.local.lua b/modulefiles/tasks/cheyenne/run_fcst.local.lua new file mode 100644 index 0000000000..494c85136d --- /dev/null +++ b/modulefiles/tasks/cheyenne/run_fcst.local.lua @@ -0,0 +1 @@ +load("conda_regional_workflow") diff --git a/modulefiles/tasks/cheyenne/run_vx.local b/modulefiles/tasks/cheyenne/run_vx.local deleted file mode 100644 index e708b857cc..0000000000 --- a/modulefiles/tasks/cheyenne/run_vx.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load conda_regional_workflow diff --git a/modulefiles/tasks/cheyenne/run_vx.local.lua b/modulefiles/tasks/cheyenne/run_vx.local.lua new file mode 100644 index 0000000000..494c85136d --- /dev/null +++ b/modulefiles/tasks/cheyenne/run_vx.local.lua @@ -0,0 +1 @@ +load("conda_regional_workflow") diff --git a/modulefiles/tasks/gaea/get_extrn_ics.local b/modulefiles/tasks/gaea/get_extrn_ics.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/gaea/get_extrn_ics.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/gaea/get_extrn_ics.local.lua b/modulefiles/tasks/gaea/get_extrn_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/get_extrn_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/get_extrn_lbcs.local b/modulefiles/tasks/gaea/get_extrn_lbcs.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/gaea/get_extrn_lbcs.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/gaea/get_extrn_lbcs.local.lua b/modulefiles/tasks/gaea/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/get_extrn_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/make_grid.local b/modulefiles/tasks/gaea/make_grid.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/gaea/make_grid.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/gaea/make_grid.local.lua b/modulefiles/tasks/gaea/make_grid.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/make_grid.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/make_ics.local b/modulefiles/tasks/gaea/make_ics.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/gaea/make_ics.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/gaea/make_ics.local.lua b/modulefiles/tasks/gaea/make_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/make_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/make_lbcs.local b/modulefiles/tasks/gaea/make_lbcs.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/gaea/make_lbcs.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/gaea/make_lbcs.local.lua b/modulefiles/tasks/gaea/make_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/make_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/make_orog.local b/modulefiles/tasks/gaea/make_orog.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/gaea/make_orog.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/gaea/make_orog.local.lua b/modulefiles/tasks/gaea/make_orog.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/make_orog.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/miniconda_regional_workflow b/modulefiles/tasks/gaea/miniconda_regional_workflow deleted file mode 100644 index 4d5cea16df..0000000000 --- a/modulefiles/tasks/gaea/miniconda_regional_workflow +++ /dev/null @@ -1,6 +0,0 @@ -#%Module - -module use /lustre/f2/dev/role.epic/contrib/modulefiles -module load miniconda3/4.12.0 - -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/gaea/miniconda_regional_workflow.lua b/modulefiles/tasks/gaea/miniconda_regional_workflow.lua new file mode 100644 index 0000000000..dd8ec8f7e4 --- /dev/null +++ b/modulefiles/tasks/gaea/miniconda_regional_workflow.lua @@ -0,0 +1,4 @@ +prepend_path("MODULEPATH", "/lustre/f2/dev/role.epic/contrib/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.12.0")) + +setenv("SRW_ENV", "regional_workflow") diff --git a/modulefiles/tasks/gaea/run_fcst.local b/modulefiles/tasks/gaea/run_fcst.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/gaea/run_fcst.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/gaea/run_fcst.local.lua b/modulefiles/tasks/gaea/run_fcst.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/gaea/run_fcst.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/gaea/run_vx.local b/modulefiles/tasks/gaea/run_vx.local deleted file mode 100644 index f9a59c8e78..0000000000 --- a/modulefiles/tasks/gaea/run_vx.local +++ /dev/null @@ -1,5 +0,0 @@ -#%Module - -module load miniconda_regional_workflow - -prepend-path LD_LIBRARY_PATH /ncrc/sw/gaea-cle7/python/3.9/anaconda-base/envs/noaa_py3.9/lib diff --git a/modulefiles/tasks/gaea/run_vx.local.lua b/modulefiles/tasks/gaea/run_vx.local.lua new file mode 100644 index 0000000000..85e2bc2053 --- /dev/null +++ b/modulefiles/tasks/gaea/run_vx.local.lua @@ -0,0 +1,2 @@ +load("miniconda_regional_workflow") +prepend_path("LD_LIBRARY_PATH", "/ncrc/sw/gaea-cle7/python/3.9/anaconda-base/envs/noaa_py3.9/lib") diff --git a/modulefiles/tasks/hera/get_extrn_ics.local b/modulefiles/tasks/hera/get_extrn_ics.local deleted file mode 100644 index dc099871e1..0000000000 --- a/modulefiles/tasks/hera/get_extrn_ics.local +++ /dev/null @@ -1,7 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_ics task. -############################################################# - -module load hpss - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/hera/get_extrn_ics.local.lua b/modulefiles/tasks/hera/get_extrn_ics.local.lua new file mode 100644 index 0000000000..d1afe2451e --- /dev/null +++ b/modulefiles/tasks/hera/get_extrn_ics.local.lua @@ -0,0 +1,2 @@ +load("hpss") +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/hera/get_extrn_lbcs.local b/modulefiles/tasks/hera/get_extrn_lbcs.local deleted file mode 100644 index 1b420d33bc..0000000000 --- a/modulefiles/tasks/hera/get_extrn_lbcs.local +++ /dev/null @@ -1,7 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_lbcs task. -############################################################# - -module load hpss - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/hera/get_extrn_lbcs.local.lua b/modulefiles/tasks/hera/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..d1afe2451e --- /dev/null +++ b/modulefiles/tasks/hera/get_extrn_lbcs.local.lua @@ -0,0 +1,2 @@ +load("hpss") +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/hera/get_obs.local b/modulefiles/tasks/hera/get_obs.local deleted file mode 100644 index 9ed022a5a1..0000000000 --- a/modulefiles/tasks/hera/get_obs.local +++ /dev/null @@ -1,11 +0,0 @@ -#%Module##################################################### -## Module file for get_obs_ccpa, get_obs_mrms, and -## get_obs_ndas task. -############################################################# - -module load hpss - -module use /contrib/miniconda3/modulefiles -module load miniconda3/4.5.12 - -setenv SRW_ENV pygraf diff --git a/modulefiles/tasks/hera/get_obs.local.lua b/modulefiles/tasks/hera/get_obs.local.lua new file mode 100644 index 0000000000..c53d3ff3de --- /dev/null +++ b/modulefiles/tasks/hera/get_obs.local.lua @@ -0,0 +1,5 @@ +load("hpss") +prepend_path("MODULEPATH", "/contrib/miniconda3/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.5.12") + +setenv("SRW_ENV", "pygraf") diff --git a/modulefiles/tasks/hera/make_grid.local b/modulefiles/tasks/hera/make_grid.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/hera/make_grid.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/hera/make_grid.local.lua b/modulefiles/tasks/hera/make_grid.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/hera/make_grid.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/hera/make_ics.local b/modulefiles/tasks/hera/make_ics.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/hera/make_ics.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/hera/make_ics.local.lua b/modulefiles/tasks/hera/make_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/hera/make_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/hera/make_lbcs.local b/modulefiles/tasks/hera/make_lbcs.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/hera/make_lbcs.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/hera/make_lbcs.local.lua b/modulefiles/tasks/hera/make_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/hera/make_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/hera/miniconda_regional_workflow b/modulefiles/tasks/hera/miniconda_regional_workflow deleted file mode 100644 index 48de7a99bb..0000000000 --- a/modulefiles/tasks/hera/miniconda_regional_workflow +++ /dev/null @@ -1,5 +0,0 @@ -#%Module -module use /contrib/miniconda3/modulefiles -module load miniconda3/4.5.12 - -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/hera/miniconda_regional_workflow.lua b/modulefiles/tasks/hera/miniconda_regional_workflow.lua new file mode 100644 index 0000000000..0443b7d948 --- /dev/null +++ b/modulefiles/tasks/hera/miniconda_regional_workflow.lua @@ -0,0 +1,4 @@ +prepend_path("MODULEPATH", "/contrib/miniconda3/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.5.12")) + +setenv("SRW_ENV", "regional_workflow") diff --git a/modulefiles/tasks/hera/run_fcst.local b/modulefiles/tasks/hera/run_fcst.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/hera/run_fcst.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/hera/run_fcst.local.lua b/modulefiles/tasks/hera/run_fcst.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/hera/run_fcst.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/hera/run_vx.local b/modulefiles/tasks/hera/run_vx.local deleted file mode 100644 index 51416ff471..0000000000 --- a/modulefiles/tasks/hera/run_vx.local +++ /dev/null @@ -1,5 +0,0 @@ -#%Module - -module use -a /contrib/anaconda/modulefiles -module load intel/18.0.5.274 -module load anaconda/latest diff --git a/modulefiles/tasks/hera/run_vx.local.lua b/modulefiles/tasks/hera/run_vx.local.lua new file mode 100644 index 0000000000..4fc605bc83 --- /dev/null +++ b/modulefiles/tasks/hera/run_vx.local.lua @@ -0,0 +1,3 @@ +append_path("MODULEPATH", "/contrib/anaconda/modulefiles") +load(pathJoin("intel", os.gentenv("intel_ver") or "18.0.5.274")) +load(pathJoin("anaconda", os.getenv("anaconda_ver") or "latest")) diff --git a/modulefiles/tasks/jet/get_extrn_ics.local b/modulefiles/tasks/jet/get_extrn_ics.local deleted file mode 100644 index 4b0b48cc00..0000000000 --- a/modulefiles/tasks/jet/get_extrn_ics.local +++ /dev/null @@ -1,9 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_ics task. -############################################################# - -module purge - -module load hpss - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/jet/get_extrn_ics.local.lua b/modulefiles/tasks/jet/get_extrn_ics.local.lua new file mode 100644 index 0000000000..d1afe2451e --- /dev/null +++ b/modulefiles/tasks/jet/get_extrn_ics.local.lua @@ -0,0 +1,2 @@ +load("hpss") +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/jet/get_extrn_lbcs.local b/modulefiles/tasks/jet/get_extrn_lbcs.local deleted file mode 100644 index 477dfb2e40..0000000000 --- a/modulefiles/tasks/jet/get_extrn_lbcs.local +++ /dev/null @@ -1,9 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_lbcs task. -############################################################# - -module purge - -module load hpss - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/jet/get_extrn_lbcs.local.lua b/modulefiles/tasks/jet/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..d1afe2451e --- /dev/null +++ b/modulefiles/tasks/jet/get_extrn_lbcs.local.lua @@ -0,0 +1,2 @@ +load("hpss") +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/jet/make_grid.local b/modulefiles/tasks/jet/make_grid.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/jet/make_grid.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/jet/make_grid.local.lua b/modulefiles/tasks/jet/make_grid.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/jet/make_grid.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/jet/make_ics.local b/modulefiles/tasks/jet/make_ics.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/jet/make_ics.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/jet/make_ics.local.lua b/modulefiles/tasks/jet/make_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/jet/make_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/jet/make_lbcs.local b/modulefiles/tasks/jet/make_lbcs.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/jet/make_lbcs.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/jet/make_lbcs.local.lua b/modulefiles/tasks/jet/make_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/jet/make_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/jet/miniconda_regional_workflow b/modulefiles/tasks/jet/miniconda_regional_workflow deleted file mode 100644 index 48de7a99bb..0000000000 --- a/modulefiles/tasks/jet/miniconda_regional_workflow +++ /dev/null @@ -1,5 +0,0 @@ -#%Module -module use /contrib/miniconda3/modulefiles -module load miniconda3/4.5.12 - -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/jet/miniconda_regional_workflow.lua b/modulefiles/tasks/jet/miniconda_regional_workflow.lua new file mode 100644 index 0000000000..0443b7d948 --- /dev/null +++ b/modulefiles/tasks/jet/miniconda_regional_workflow.lua @@ -0,0 +1,4 @@ +prepend_path("MODULEPATH", "/contrib/miniconda3/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.5.12")) + +setenv("SRW_ENV", "regional_workflow") diff --git a/modulefiles/tasks/jet/run_fcst.local b/modulefiles/tasks/jet/run_fcst.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/jet/run_fcst.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/jet/run_fcst.local.lua b/modulefiles/tasks/jet/run_fcst.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/jet/run_fcst.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/jet/run_vx.local b/modulefiles/tasks/jet/run_vx.local deleted file mode 100644 index 9be1ed3c79..0000000000 --- a/modulefiles/tasks/jet/run_vx.local +++ /dev/null @@ -1,5 +0,0 @@ -#%Module - -module use -a /contrib/anaconda/modulefiles -module load intel/18.0.5.274 -module load anaconda/5.3.1 diff --git a/modulefiles/tasks/jet/run_vx.local.lua b/modulefiles/tasks/jet/run_vx.local.lua new file mode 100644 index 0000000000..26cbb9088c --- /dev/null +++ b/modulefiles/tasks/jet/run_vx.local.lua @@ -0,0 +1,3 @@ +append_path("MODULEPATH", "/contrib/anaconda/modulefiles") +load(pathJoin("intel", os.gentenv("intel_ver") or "18.0.5.274")) +load(pathJoin("anaconda", os.getenv("anaconda_ver") or "5.3.1")) diff --git a/modulefiles/tasks/noaacloud/get_extrn_ics.local b/modulefiles/tasks/noaacloud/get_extrn_ics.local deleted file mode 100644 index 5d5eb22d2f..0000000000 --- a/modulefiles/tasks/noaacloud/get_extrn_ics.local +++ /dev/null @@ -1,6 +0,0 @@ -#%Module - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow - diff --git a/modulefiles/tasks/noaacloud/get_extrn_ics.local.lua b/modulefiles/tasks/noaacloud/get_extrn_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/get_extrn_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/get_extrn_lbcs.local b/modulefiles/tasks/noaacloud/get_extrn_lbcs.local deleted file mode 100644 index 7c9bd15b53..0000000000 --- a/modulefiles/tasks/noaacloud/get_extrn_lbcs.local +++ /dev/null @@ -1,5 +0,0 @@ -#%Module - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/get_extrn_lbcs.local.lua b/modulefiles/tasks/noaacloud/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/get_extrn_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/make_grid.local b/modulefiles/tasks/noaacloud/make_grid.local deleted file mode 100644 index 6799120ead..0000000000 --- a/modulefiles/tasks/noaacloud/make_grid.local +++ /dev/null @@ -1,11 +0,0 @@ -#%Module - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load netcdf-c -module load netcdf-fortran - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/make_grid.local.lua b/modulefiles/tasks/noaacloud/make_grid.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/make_grid.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/make_ics.local b/modulefiles/tasks/noaacloud/make_ics.local deleted file mode 100644 index 39c0f90851..0000000000 --- a/modulefiles/tasks/noaacloud/make_ics.local +++ /dev/null @@ -1,13 +0,0 @@ -#%Module - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load netcdf-c -module load netcdf-fortran -module load libpng -module load jasper - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/make_ics.local.lua b/modulefiles/tasks/noaacloud/make_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/make_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/make_lbcs.local b/modulefiles/tasks/noaacloud/make_lbcs.local deleted file mode 100644 index 39c0f90851..0000000000 --- a/modulefiles/tasks/noaacloud/make_lbcs.local +++ /dev/null @@ -1,13 +0,0 @@ -#%Module - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load netcdf-c -module load netcdf-fortran -module load libpng -module load jasper - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/make_lbcs.local.lua b/modulefiles/tasks/noaacloud/make_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/make_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/make_orog.local b/modulefiles/tasks/noaacloud/make_orog.local deleted file mode 100644 index 6799120ead..0000000000 --- a/modulefiles/tasks/noaacloud/make_orog.local +++ /dev/null @@ -1,11 +0,0 @@ -#%Module - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load netcdf-c -module load netcdf-fortran - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/make_orog.local.lua b/modulefiles/tasks/noaacloud/make_orog.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/make_orog.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/make_sfc_climo.local b/modulefiles/tasks/noaacloud/make_sfc_climo.local deleted file mode 100644 index 6799120ead..0000000000 --- a/modulefiles/tasks/noaacloud/make_sfc_climo.local +++ /dev/null @@ -1,11 +0,0 @@ -#%Module - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load netcdf-c -module load netcdf-fortran - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/make_sfc_climo.local.lua b/modulefiles/tasks/noaacloud/make_sfc_climo.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/make_sfc_climo.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/miniconda_regional_workflow b/modulefiles/tasks/noaacloud/miniconda_regional_workflow deleted file mode 100644 index 936a9d4c84..0000000000 --- a/modulefiles/tasks/noaacloud/miniconda_regional_workflow +++ /dev/null @@ -1,5 +0,0 @@ -#%Module -module use -a /contrib/GST/miniconda3/modulefiles -module load miniconda3/4.10.3 - -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/miniconda_regional_workflow.lua b/modulefiles/tasks/noaacloud/miniconda_regional_workflow.lua new file mode 100644 index 0000000000..74486df795 --- /dev/null +++ b/modulefiles/tasks/noaacloud/miniconda_regional_workflow.lua @@ -0,0 +1,4 @@ +prepend_path("MODULEPATH", "/contrib/GST/miniconda3/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.10.3")) + +setenv("SRW_ENV", "regional_workflow") diff --git a/modulefiles/tasks/noaacloud/run_fcst.local b/modulefiles/tasks/noaacloud/run_fcst.local deleted file mode 100644 index 39c0f90851..0000000000 --- a/modulefiles/tasks/noaacloud/run_fcst.local +++ /dev/null @@ -1,13 +0,0 @@ -#%Module - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load netcdf-c -module load netcdf-fortran -module load libpng -module load jasper - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/run_fcst.local.lua b/modulefiles/tasks/noaacloud/run_fcst.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/run_fcst.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/noaacloud/run_post.local b/modulefiles/tasks/noaacloud/run_post.local deleted file mode 100644 index 39c0f90851..0000000000 --- a/modulefiles/tasks/noaacloud/run_post.local +++ /dev/null @@ -1,13 +0,0 @@ -#%Module - -module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core -module load stack-intel -module load stack-intel-oneapi-mpi -module load netcdf-c -module load netcdf-fortran -module load libpng -module load jasper - -module load miniconda_regional_workflow -prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/noaacloud/run_post.local.lua b/modulefiles/tasks/noaacloud/run_post.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/noaacloud/run_post.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/odin/get_extrn_ics.local b/modulefiles/tasks/odin/get_extrn_ics.local deleted file mode 100644 index 77e8616036..0000000000 --- a/modulefiles/tasks/odin/get_extrn_ics.local +++ /dev/null @@ -1,8 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_ics task. -############################################################# - -#module purge - -#module load hpss - diff --git a/modulefiles/tasks/odin/get_extrn_ics.local.lua b/modulefiles/tasks/odin/get_extrn_ics.local.lua new file mode 100644 index 0000000000..e69de29bb2 diff --git a/modulefiles/tasks/odin/get_extrn_lbcs.local b/modulefiles/tasks/odin/get_extrn_lbcs.local deleted file mode 100644 index e0b1eb8abd..0000000000 --- a/modulefiles/tasks/odin/get_extrn_lbcs.local +++ /dev/null @@ -1,8 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_lbcs task. -############################################################# - -#module purge - -#module load hpss - diff --git a/modulefiles/tasks/odin/get_extrn_lbcs.local.lua b/modulefiles/tasks/odin/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..e69de29bb2 diff --git a/modulefiles/tasks/orion/get_extrn_ics.local b/modulefiles/tasks/orion/get_extrn_ics.local deleted file mode 100644 index 73f80e7b10..0000000000 --- a/modulefiles/tasks/orion/get_extrn_ics.local +++ /dev/null @@ -1,6 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_ics task. -############################################################# - -module load miniconda_regional_workflow - diff --git a/modulefiles/tasks/orion/get_extrn_ics.local.lua b/modulefiles/tasks/orion/get_extrn_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/orion/get_extrn_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/orion/get_extrn_lbcs.local b/modulefiles/tasks/orion/get_extrn_lbcs.local deleted file mode 100644 index 5612f95a22..0000000000 --- a/modulefiles/tasks/orion/get_extrn_lbcs.local +++ /dev/null @@ -1,5 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_lbcs task. -############################################################# - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/orion/get_extrn_lbcs.local.lua b/modulefiles/tasks/orion/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/orion/get_extrn_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/orion/make_grid.local b/modulefiles/tasks/orion/make_grid.local deleted file mode 100644 index 92505cf09c..0000000000 --- a/modulefiles/tasks/orion/make_grid.local +++ /dev/null @@ -1,3 +0,0 @@ -#%Module - -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/orion/make_grid.local.lua b/modulefiles/tasks/orion/make_grid.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/orion/make_grid.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/orion/make_ics.local b/modulefiles/tasks/orion/make_ics.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/orion/make_ics.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/orion/make_ics.local.lua b/modulefiles/tasks/orion/make_ics.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/orion/make_ics.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/orion/make_lbcs.local b/modulefiles/tasks/orion/make_lbcs.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/orion/make_lbcs.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/orion/make_lbcs.local.lua b/modulefiles/tasks/orion/make_lbcs.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/orion/make_lbcs.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/orion/miniconda_regional_workflow b/modulefiles/tasks/orion/miniconda_regional_workflow deleted file mode 100644 index 3703a9ba17..0000000000 --- a/modulefiles/tasks/orion/miniconda_regional_workflow +++ /dev/null @@ -1,5 +0,0 @@ -#%Module -module use -a /apps/contrib/miniconda3-noaa-gsl/modulefiles -module load miniconda3/3.8 - -setenv SRW_ENV regional_workflow diff --git a/modulefiles/tasks/orion/miniconda_regional_workflow.lua b/modulefiles/tasks/orion/miniconda_regional_workflow.lua new file mode 100644 index 0000000000..22b0f4a5ce --- /dev/null +++ b/modulefiles/tasks/orion/miniconda_regional_workflow.lua @@ -0,0 +1,4 @@ +append_path("MODULEPATH", "/apps/contrib/miniconda3-noaa-gsl/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "3.8")) + +setenv("SRW_ENV", "regional_workflow") diff --git a/modulefiles/tasks/orion/run_fcst.local b/modulefiles/tasks/orion/run_fcst.local deleted file mode 100644 index 61a3a77250..0000000000 --- a/modulefiles/tasks/orion/run_fcst.local +++ /dev/null @@ -1,2 +0,0 @@ -#%Module -module load miniconda_regional_workflow diff --git a/modulefiles/tasks/orion/run_fcst.local.lua b/modulefiles/tasks/orion/run_fcst.local.lua new file mode 100644 index 0000000000..d371c08301 --- /dev/null +++ b/modulefiles/tasks/orion/run_fcst.local.lua @@ -0,0 +1 @@ +load("miniconda_regional_workflow") diff --git a/modulefiles/tasks/stampede/get_extrn_ics.local b/modulefiles/tasks/stampede/get_extrn_ics.local deleted file mode 100644 index 77e8616036..0000000000 --- a/modulefiles/tasks/stampede/get_extrn_ics.local +++ /dev/null @@ -1,8 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_ics task. -############################################################# - -#module purge - -#module load hpss - diff --git a/modulefiles/tasks/stampede/get_extrn_ics.local.lua b/modulefiles/tasks/stampede/get_extrn_ics.local.lua new file mode 100644 index 0000000000..e69de29bb2 diff --git a/modulefiles/tasks/stampede/get_extrn_lbcs.local b/modulefiles/tasks/stampede/get_extrn_lbcs.local deleted file mode 100644 index e0b1eb8abd..0000000000 --- a/modulefiles/tasks/stampede/get_extrn_lbcs.local +++ /dev/null @@ -1,8 +0,0 @@ -#%Module##################################################### -## Module file for get_extrn_lbcs task. -############################################################# - -#module purge - -#module load hpss - diff --git a/modulefiles/tasks/stampede/get_extrn_lbcs.local.lua b/modulefiles/tasks/stampede/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..e69de29bb2 diff --git a/modulefiles/tasks/wcoss2/get_extrn_ics.local b/modulefiles/tasks/wcoss2/get_extrn_ics.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/get_extrn_ics.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/get_extrn_ics.local.lua b/modulefiles/tasks/wcoss2/get_extrn_ics.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/get_extrn_ics.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/tasks/wcoss2/get_extrn_lbcs.local b/modulefiles/tasks/wcoss2/get_extrn_lbcs.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/get_extrn_lbcs.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/get_extrn_lbcs.local.lua b/modulefiles/tasks/wcoss2/get_extrn_lbcs.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/get_extrn_lbcs.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/tasks/wcoss2/get_obs.local b/modulefiles/tasks/wcoss2/get_obs.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/get_obs.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/get_obs.local.lua b/modulefiles/tasks/wcoss2/get_obs.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/get_obs.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/tasks/wcoss2/make_grid.local b/modulefiles/tasks/wcoss2/make_grid.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/make_grid.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/make_grid.local.lua b/modulefiles/tasks/wcoss2/make_grid.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/make_grid.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/tasks/wcoss2/make_ics.local b/modulefiles/tasks/wcoss2/make_ics.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/make_ics.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/make_ics.local.lua b/modulefiles/tasks/wcoss2/make_ics.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/make_ics.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/tasks/wcoss2/make_lbcs.local b/modulefiles/tasks/wcoss2/make_lbcs.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/make_lbcs.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/make_lbcs.local.lua b/modulefiles/tasks/wcoss2/make_lbcs.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/make_lbcs.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/tasks/wcoss2/run_fcst.local b/modulefiles/tasks/wcoss2/run_fcst.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/run_fcst.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/run_fcst.local.lua b/modulefiles/tasks/wcoss2/run_fcst.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/run_fcst.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/tasks/wcoss2/run_vx.local b/modulefiles/tasks/wcoss2/run_vx.local deleted file mode 100644 index c96547a641..0000000000 --- a/modulefiles/tasks/wcoss2/run_vx.local +++ /dev/null @@ -1,4 +0,0 @@ -#%Module - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) diff --git a/modulefiles/tasks/wcoss2/run_vx.local.lua b/modulefiles/tasks/wcoss2/run_vx.local.lua new file mode 100644 index 0000000000..16559474cd --- /dev/null +++ b/modulefiles/tasks/wcoss2/run_vx.local.lua @@ -0,0 +1,2 @@ +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) diff --git a/modulefiles/wflow_cheyenne b/modulefiles/wflow_cheyenne deleted file mode 100644 index 7041823915..0000000000 --- a/modulefiles/wflow_cheyenne +++ /dev/null @@ -1,20 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads rocoto and the python environment" - put stderr "for running the UFS SRW App on the CISL machine Cheyenne" -} - -module-whatis "Loads libraries and utilities needed for running SRW on Cheyenne" - -module load ncarenv -module use -a /glade/p/ral/jntp/UFS_SRW_app/modules/ -module load rocoto -module load conda/latest - -if { [module-info mode load] } { - puts stderr "Please do the following to activate conda: - > conda activate /glade/p/ral/jntp/UFS_SRW_app/conda/regional_workflow" -} - - diff --git a/modulefiles/wflow_cheyenne.lua b/modulefiles/wflow_cheyenne.lua new file mode 100644 index 0000000000..7a7473b639 --- /dev/null +++ b/modulefiles/wflow_cheyenne.lua @@ -0,0 +1,20 @@ +help([[ +This module loads python environement for running the UFS SRW App on +on the CISL machine Cheyenne +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App on Cheyenne ]===]) + +load("ncarenv") + +append_path("MODULEPATH","/glade/p/ral/jntp/UFS_SRW_app/modules") +load("rocoto") + +load(pathJoin("conda", os.getenv("conda_ver") or "latest")) + +if mode() == "load" then + LmodMsgRaw([===[Please do the following to activate conda: + > conda activate regional_workflow +]===]) +end + diff --git a/modulefiles/wflow_gaea b/modulefiles/wflow_gaea deleted file mode 100644 index 18568f7fcf..0000000000 --- a/modulefiles/wflow_gaea +++ /dev/null @@ -1,21 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW on" - put stderr "the NOAA RDHPC machine Gaea" -} - -module-whatis "Loads libraries needed for running SRW on Gaea" - -module use /lustre/f2/dev/role.epic/contrib/modulefiles -module load miniconda3/4.12.0 -module load rocoto -module load alps - -setenv CONDA_DEFAULT_ENV "regional_workflow" -setenv PROJ_LIB /lustre/f2/dev/role.epic/contrib/miniconda3/4.12.0/envs/regional_workflow/share/proj - -if { [module-info mode load] } { - puts stderr "Please do the following to activate conda: - > conda activate regional_workflow" -} diff --git a/modulefiles/wflow_gaea.lua b/modulefiles/wflow_gaea.lua new file mode 100644 index 0000000000..e4b726aac1 --- /dev/null +++ b/modulefiles/wflow_gaea.lua @@ -0,0 +1,19 @@ +help([[ +This module loads python environement for running the UFS SRW App on +the NOAA RDHPC machine Gaea +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App on gaea ]===]) + +prepend_path("MODULEPATH","/lustre/f2/dev/role.epic/contrib/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.12.0")) +load("rocoto") +load("alps") + +setenv("PROJ_LIB", "/lustre/f2/dev/role.epic/contrib/miniconda3/4.12.0/envs/regional_workflow/share/proj") + +if mode() == "load" then + LmodMsgRaw([===[Please do the following to activate conda: + > conda activate regional_workflow +]===]) +end diff --git a/modulefiles/wflow_hera b/modulefiles/wflow_hera deleted file mode 100644 index 71641a3d11..0000000000 --- a/modulefiles/wflow_hera +++ /dev/null @@ -1,19 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW on" - put stderr "the NOAA RDHPC machine Hera" -} - -module-whatis "Loads libraries needed for running SRW on Hera" - -module load rocoto - -module use /contrib/miniconda3/modulefiles -module load miniconda3/4.5.12 - -if { [module-info mode load] } { - puts stderr "Please do the following to activate conda: - > conda activate regional_workflow" -} - diff --git a/modulefiles/wflow_hera.lua b/modulefiles/wflow_hera.lua new file mode 100644 index 0000000000..58bc83d0c4 --- /dev/null +++ b/modulefiles/wflow_hera.lua @@ -0,0 +1,17 @@ +help([[ +This module loads python environement for running the UFS SRW App on +the NOAA RDHPC machine Hera +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App on Hera ]===]) + +load("rocoto") + +prepend_path("MODULEPATH","/contrib/miniconda3/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.5.12")) + +if mode() == "load" then + LmodMsgRaw([===[Please do the following to activate conda: + > conda activate regional_workflow +]===]) +end diff --git a/modulefiles/wflow_jet b/modulefiles/wflow_jet deleted file mode 100644 index 7aa7d0e67a..0000000000 --- a/modulefiles/wflow_jet +++ /dev/null @@ -1,19 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW on" - put stderr "the NOAA RDHPC machine Jet" -} - -module-whatis "Loads libraries needed for running SRW on Jet" - -module load rocoto - -module use /contrib/miniconda3/modulefiles -module load miniconda3/4.5.12 - -if { [module-info mode load] } { - puts stderr "Please do the following to activate conda: - > conda activate regional_workflow" -} - diff --git a/modulefiles/wflow_jet.lua b/modulefiles/wflow_jet.lua new file mode 100644 index 0000000000..3c651ae788 --- /dev/null +++ b/modulefiles/wflow_jet.lua @@ -0,0 +1,17 @@ +help([[ +This module loads python environement for running the UFS SRW App on +the NOAA RDHPC machine Jet +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App on Jet ]===]) + +load("rocoto") + +prepend_path("MODULEPATH","/contrib/miniconda3/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.5.12")) + +if mode() == "load" then + LmodMsgRaw([===[Please do the following to activate conda: + > conda activate regional_workflow +]===]) +end diff --git a/modulefiles/wflow_linux b/modulefiles/wflow_linux deleted file mode 100644 index 2d4a4e33e9..0000000000 --- a/modulefiles/wflow_linux +++ /dev/null @@ -1,29 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module activates python environement for running SRW on general Linux" -} - -module-whatis "This module activates python environment for running SRW on general Linux" - -setenv CMAKE_Platform linux - -# This path should point to your python virtual environment directory, -# `regional_workflow`, created earlier for -# -setenv VENV "$env(HOME)/venv/regional_workflow" -if { [module-info mode load] } { - puts stderr "Verify the Python virtual environment path \$VENV shown below is correct, " - puts stderr "set to the correct path otherwise: " - puts stderr "VENV=$env(VENV) " - puts stderr "Please do the following to activate python virtual environment: - > source \$VENV/bin/activate " -} - -# Uncomment if Rocoto workflow manager is used -# This path should point to your Rocoto module location -# setenv ROCOTOmod "/Users/username/modules" -# module use $env(ROCOTOmod) -# module load rocoto - - diff --git a/modulefiles/wflow_linux.lua b/modulefiles/wflow_linux.lua new file mode 100644 index 0000000000..edfafa727d --- /dev/null +++ b/modulefiles/wflow_linux.lua @@ -0,0 +1,26 @@ +help([[ +This module activates python environement for running the UFS SRW App on Linux +]]) + +whatis([===[This module activates python environment for running the UFS SRW App on Linux]===]) + +setenv("CMAKE_Platform", "linux") +setenv("VENV", pathJoin(os.getenv("HOME"), "venv/regional_workflow")) + +--[[ +local ROCOTOmod="/Users/username/modules" +prepend_path("MODULEPATH", ROCOTOmod) +load(rocoto) +--]] + +if mode() == "load" then + LmodMsgRaw([===[Verify the Python virtual environment path \$VENV shown below is correct, +set to the correct path otherwise: +VENV=$env(VENV) " +Please do the following to activate python virtual environment: + > source \$VENV/bin/activate +]===]) +end +if mode() == "unload" then + execute{cmd="deactivate", modeA={"unload"}} +end diff --git a/modulefiles/wflow_macos b/modulefiles/wflow_macos deleted file mode 100644 index 9b8e27b2d7..0000000000 --- a/modulefiles/wflow_macos +++ /dev/null @@ -1,31 +0,0 @@ -#%Module - -proc ModulesHelp { } { - puts stderr "This module activates python environement for running SRW on macOS" -} - -module-whatis "Loads libraries needed for running SRW on macOS" - -setenv CMAKE_Platform macos - -# This path should point to your python virtual environment directory, -# `regional_workflow`, created earlier for -# -setenv VENV "$env(HOME)/venv/regional_workflow" -if { [module-info mode load] } { - puts stderr "Verify the Python virtual environment path \$VENV shown below is correct, " - puts stderr "set to the correct path otherwise: " - puts stderr "VENV=$env(VENV) " - puts stderr "Please do the following to activate python virtual environment: - > source \$VENV/bin/activate " -} -if { [module-info mode remove] } { - puts "deactivate;" -} - -# Uncomment if Rocoto workflow manager is used -# This path should point to your Rocoto module location -# setenv ROCOTOmod "/Users/username/modules" -# module use $env(ROCOTOmod) -# module load rocoto - diff --git a/modulefiles/wflow_macos.lua b/modulefiles/wflow_macos.lua new file mode 100644 index 0000000000..d1425197ad --- /dev/null +++ b/modulefiles/wflow_macos.lua @@ -0,0 +1,26 @@ +help([[ +This module activates python environement for running the UFS SRW App on general macOS +]]) + +whatis([===[This module activates python environment for running the UFS SRW App on macOS]===]) + +setenv("CMAKE_Platform", "macos") +setenv("VENV", pathJoin(os.getenv("HOME"), "venv/regional_workflow")) + +--[[ +local ROCOTOmod="/Users/username/modules" +prepend_path("MODULEPATH", ROCOTOmod) +load(rocoto) +--]] + +if mode() == "load" then + LmodMsgRaw([===[Verify the Python virtual environment path \$VENV shown below is correct, " +set to the correct path otherwise: " +VENV=$env(VENV) " +Please do the following to activate python virtual environment: + > source \$VENV/bin/activate " +]===]) +end +if mode() == "unload" then + execute{cmd="deactivate", modeA={"unload"}} +end diff --git a/modulefiles/wflow_noaacloud b/modulefiles/wflow_noaacloud deleted file mode 100644 index 2344974d90..0000000000 --- a/modulefiles/wflow_noaacloud +++ /dev/null @@ -1,23 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW on" - put stderr "the NOAA cloud" -} - -module-whatis "Loads libraries needed for running SRW on NOAA cloud" - -module use /apps/modules/modulefiles -module load rocoto -module use /contrib/GST/miniconda3/modulefiles -module load miniconda3/4.10.3 - -setenv PROJ_LIB "/contrib/GST/miniconda/envs/regional_workflow/share/proj" -setenv OPT "/contrib/EPIC/hpc-modules" -append-path PATH "/contrib/GST/miniconda/envs/regional_workflow/bin" - -if { [module-info mode load] } { - puts stderr "Please do the following to activate conda: - > conda activate regional_workflow" -} - diff --git a/modulefiles/wflow_noaacloud.lua b/modulefiles/wflow_noaacloud.lua new file mode 100644 index 0000000000..23746052a0 --- /dev/null +++ b/modulefiles/wflow_noaacloud.lua @@ -0,0 +1,22 @@ +help([[ +This module loads python environement for running the UFS SRW App on +the NOAA cloud +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App on NOAA cloud ]===]) + +prepend_path("MODULEPATH","/apps/modules/modulefiles") +load("rocoto") + +prepend_path("MODULEPATH","/contrib/GST/miniconda3/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "4.10.3")) + +setenv("PROJ_LIB","/contrib/GST/miniconda/envs/regional_workflow/share/proj") +setenv("OPT","/contrib/EPIC/hpc-modules") +append_path("PATH","/contrib/GST/miniconda/envs/regional_workflow/bin") + +if mode() == "load" then + LmodMsgRaw([===[Please do the following to activate conda: + > conda activate regional_workflow +]===]) +end diff --git a/modulefiles/wflow_odin b/modulefiles/wflow_odin deleted file mode 100644 index ca240f84e1..0000000000 --- a/modulefiles/wflow_odin +++ /dev/null @@ -1,42 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW on" - put stderr "NSSL machine Odin" -} - -module-whatis "Loads libraries needed for running SRW on Odin" - -if { [module-info mode load] } { - # >>> conda initialize >>> - # !! Contents within this block are managed by 'conda init' !! - set shell [module-info shelltype] - set conda_path "/scratch/software/Odin/python/anaconda2" - if {$shell == "csh"} { - set conda_file "$conda_path/conda.csh" - } else { - set conda_file "$conda_path/conda.sh" - } - - if {[ file exists "$conda_file" ]} { - system "source $conda_file;" - } else { - prepend-path PATH "$conda_path/bin" - } - # <<< conda initialize <<< - - # To make "regional_workflow" avaiable, - # you should uncomment the following lines, which create file ".condarc" - # or install the environment yourself. - # -# set cmd {cat > $HOME/.condarc < conda config --set changeps1 False - > conda activate regional_workflow" -} - diff --git a/modulefiles/wflow_odin.lua b/modulefiles/wflow_odin.lua new file mode 100644 index 0000000000..7b1b5d8203 --- /dev/null +++ b/modulefiles/wflow_odin.lua @@ -0,0 +1,33 @@ +help([[ +This module loads python environement for running the UFS SRW App on +the NSSL machine Odin +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App on Odin ]===]) + +if mode() == "load" then + -- >>> conda initialize >>> + -- !! Contents within this block are managed by 'conda init' !! + local shell=myShellType() + local conda_path="/scratch/software/Odin/python/anaconda2" + local conda_file + if shell == "csh" then + conda_file=pathJoin(conda_path,"conda.csh") + else + conda_file=pathJoin(conda_path,"conda.sh") + end + + local exit_code = os.execute('test -f'..conda_file) + if exit_code == 0 then + local mcmd="source " .. conda_file + execute{cmd=mcmd, modeA={"load"}} + else + prepend_path("PATH", pathJoin(conda_path,"bin")) + end + -- <<< conda initialize <<< + + LmodMsgRaw([===[Please do the following to activate conda: + > conda config --set changeps1 False + > conda activate regional_workflow + ]===]) +end diff --git a/modulefiles/wflow_orion b/modulefiles/wflow_orion deleted file mode 100644 index fb3439b0b9..0000000000 --- a/modulefiles/wflow_orion +++ /dev/null @@ -1,19 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW on" - put stderr "the MSU machine Orion" -} - -module-whatis "Loads libraries needed for running SRW on Orion" - -module load contrib rocoto - -module use -a /apps/contrib/miniconda3-noaa-gsl/modulefiles -module load miniconda3/3.8 - -if { [module-info mode load] } { - puts stderr "Please do the following to activate conda: - > conda activate regional_workflow" -} - diff --git a/modulefiles/wflow_orion.lua b/modulefiles/wflow_orion.lua new file mode 100644 index 0000000000..29518b70a9 --- /dev/null +++ b/modulefiles/wflow_orion.lua @@ -0,0 +1,19 @@ +help([[ +This module loads python environement for running SRW on +the MSU machine Orion +]]) + +whatis([===[Loads libraries needed for running SRW on Orion ]===]) + +load("contrib") +load("rocoto") + +append_path("MODULEPATH","/apps/contrib/miniconda3-noaa-gsl/modulefiles") +load(pathJoin("miniconda3", os.getenv("miniconda3_ver") or "3.8")) + +if mode() == "load" then + LmodMsgRaw([===[Please do the following to activate conda: + > conda activate regional_workflow +]===]) +end + diff --git a/modulefiles/wflow_singularity b/modulefiles/wflow_singularity deleted file mode 100644 index af765e015b..0000000000 --- a/modulefiles/wflow_singularity +++ /dev/null @@ -1,16 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW in" - put stderr "a singularity container" -} - -module-whatis "Loads libraries needed for running SRW in a singularity container" - -module use -a /opt/hpc-modules/modulefiles/core -module load miniconda3 - -if { [module-info mode load] } { - system "conda activate regional_workflow;" -} - diff --git a/modulefiles/wflow_singularity.lua b/modulefiles/wflow_singularity.lua new file mode 100644 index 0000000000..3c16a93570 --- /dev/null +++ b/modulefiles/wflow_singularity.lua @@ -0,0 +1,13 @@ +help([[ +This module loads python environement for running the UFS SRW App in +a singularity container +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App in a singularity container]===]) + +append_path("MODULEPATH","/opt/hpc-modules/modulefiles/core") +load("miniconda3") + +if mode() == "load" then + execute{cmd="conda activate regional_workflow", modeA={"load"}} +end diff --git a/modulefiles/wflow_wcoss2 b/modulefiles/wflow_wcoss2 deleted file mode 100644 index c6b78f2dcb..0000000000 --- a/modulefiles/wflow_wcoss2 +++ /dev/null @@ -1,14 +0,0 @@ -#%Module - -proc ModulesHelp { } { - put stderr "This module loads python environement for running SRW on" - put stderr "the NOAA operational machine WCOSS2 (Cactus/Dogwood)" -} - -module-whatis "Loads libraries needed for running SRW on WCOSS2 (Cactus/Dogwood)" - -module load intel/$::env(intel_ver) -module load python/$::env(python_ver) - -module use /apps/ops/test/nco/modulefiles -module load core/rocoto/$::env(rocoto_ver) diff --git a/modulefiles/wflow_wcoss2.lua b/modulefiles/wflow_wcoss2.lua new file mode 100644 index 0000000000..d8ed8f686f --- /dev/null +++ b/modulefiles/wflow_wcoss2.lua @@ -0,0 +1,18 @@ +help([[ +This module loads python environement for running the UFS SRW App on +the NOAA operational machine WCOSS2 (Cactus/Dogwood)" +]]) + +whatis([===[Loads libraries needed for running the UFS SRW App on WCOSS2 ]===]) + +load(pathJoin("intel", os.getenv("intel_ver"))) +load(pathJoin("python", os.getenv("python_ver"))) + +prepend_path("MODULEPATH","/apps/ops/test/nco/modulefiles") +load(pathJoin("core/rocoto", os.getenv("rocoto_ver"))) + +if mode() == "load" then + LmodMsgRaw([===[Please do the following to activate conda: + > conda activate regional_workflow +]===]) +end diff --git a/ush/load_modules_run_task.sh b/ush/load_modules_run_task.sh index 708541c5a3..efd14c88ab 100755 --- a/ush/load_modules_run_task.sh +++ b/ush/load_modules_run_task.sh @@ -164,7 +164,7 @@ fi # Load the .local module file if available for the given task # modulefile_local="${task_name}.local" -if [ -f ${modules_dir}/${modulefile_local} ]; then +if [ -f ${modules_dir}/${modulefile_local}.lua ]; then module load "${modulefile_local}" || print_err_msg_exit "\ Loading .local module file (in directory specified by mod- ules_dir) for the specified task (task_name) failed: From 75fa02d107f574447507db311a8e6f327be4b732 Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Fri, 14 Oct 2022 21:13:15 +0000 Subject: [PATCH 2/8] Fix for orion build. --- modulefiles/build_orion_intel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modulefiles/build_orion_intel.lua b/modulefiles/build_orion_intel.lua index ff73910fb8..92795c6f8c 100644 --- a/modulefiles/build_orion_intel.lua +++ b/modulefiles/build_orion_intel.lua @@ -8,7 +8,7 @@ whatis([===[Loads libraries needed for building the UFS SRW App on Orion ]===]) load("contrib") load("noaatools") -load(pathJoin("cmake", os.getenv("cmake_ver") or "3.20.1")) +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.22.1")) load(pathJoin("python", os.getenv("python_ver") or "3.9.2")) prepend_path("MODULEPATH","/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack") From 2817f15a87e21245c6fa4e7a6d72061699c7f588 Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Fri, 14 Oct 2022 21:31:03 +0000 Subject: [PATCH 3/8] Fix for cheyenne, but issue with load_any remains. --- modulefiles/build_cheyenne_gnu.lua | 6 +++--- modulefiles/build_cheyenne_intel.lua | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modulefiles/build_cheyenne_gnu.lua b/modulefiles/build_cheyenne_gnu.lua index 91417c4e6b..6f1dc5d75e 100644 --- a/modulefiles/build_cheyenne_gnu.lua +++ b/modulefiles/build_cheyenne_gnu.lua @@ -28,9 +28,9 @@ load(pathJoin("libpng", os.getenv("libpng_ver") or "1.6.37")) load(pathJoin("pio", os.getenv("pio_ver") or "2.5.3")) load(pathJoin("fms", os.getenv("fms_ver") or "2022.01")) -setenv("CMAKE_C_COMPILER","mpiicc") -setenv("CMAKE_CXX_COMPILER","mpiicpc") -setenv("CMAKE_Fortran_COMPILER","mpiifort") +setenv("CMAKE_C_COMPILER","mpicc") +setenv("CMAKE_CXX_COMPILER","mpicxx") +setenv("CMAKE_Fortran_COMPILER","mpif90") setenv("CMAKE_Platform","cheyenne.gnu") setenv("CC", "mpicc") setenv("CXX", "mpicxx") diff --git a/modulefiles/build_cheyenne_intel.lua b/modulefiles/build_cheyenne_intel.lua index ae227cb5aa..b1ae5b7bc1 100644 --- a/modulefiles/build_cheyenne_intel.lua +++ b/modulefiles/build_cheyenne_intel.lua @@ -29,8 +29,8 @@ load(pathJoin("libpng", os.getenv("libpng_ver") or "1.6.37")) load(pathJoin("pio", os.getenv("pio_ver") or "2.5.3")) load(pathJoin("fms", os.getenv("fms_ver") or "2022.01")) -setenv("CMAKE_C_COMPILER","mpiicc") -setenv("CMAKE_CXX_COMPILER","mpiicpc") -setenv("CMAKE_Fortran_COMPILER","mpiifort") -setenv("CMAKE_Platform","cheyenne.gnu") +setenv("CMAKE_C_COMPILER","mpicc") +setenv("CMAKE_CXX_COMPILER","mpicpc") +setenv("CMAKE_Fortran_COMPILER","mpif90") +setenv("CMAKE_Platform","cheyenne.intel") From 1b1d40af9b5d58b08fae118c3937e2542ae85a32 Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Sat, 15 Oct 2022 22:42:09 +0000 Subject: [PATCH 4/8] Bug fix for jet data locations. --- ush/load_modules_wflow.sh | 1 + ush/machine/jet.yaml | 6 +++--- ush/python_utils/environment.py | 2 +- ush/setup.py | 14 ++++++-------- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/ush/load_modules_wflow.sh b/ush/load_modules_wflow.sh index 51a85de46c..d4ded9d9f1 100755 --- a/ush/load_modules_wflow.sh +++ b/ush/load_modules_wflow.sh @@ -70,5 +70,6 @@ fi $has_mu && set -u # List loaded modulefiles +module --version module list diff --git a/ush/machine/jet.yaml b/ush/machine/jet.yaml index c5aa0ca398..cf8545de75 100644 --- a/ush/machine/jet.yaml +++ b/ush/machine/jet.yaml @@ -38,8 +38,8 @@ task_run_fcst: FIXlut: /mnt/lfs4/BMC/wrfruc/UFS_SRW_App/develop/fix/fix_lut data: FV3GFS: - - nemsio: /public/data/grids/gfs/nemsio - - grib2: /public/data/grids/gfs/0p25deg/grib2 - - netcdf: /public/data/grids/gfs/anl/netcdf + nemsio: /public/data/grids/gfs/nemsio + grib2: /public/data/grids/gfs/0p25deg/grib2 + netcdf: /public/data/grids/gfs/anl/netcdf RAP: /public/data/grids/rap/full/wrfprs/grib2 HRRR: /public/data/grids/hrrr/conus/wrfprs/grib2 diff --git a/ush/python_utils/environment.py b/ush/python_utils/environment.py index 1655150649..f327a74f40 100644 --- a/ush/python_utils/environment.py +++ b/ush/python_utils/environment.py @@ -224,7 +224,7 @@ def import_vars(dictionary=None, target_dict=None, env_vars=None): for k, v in env_vars.items(): # Don't replace variable with empty value - if not ((k in target_dict) and (v == "")): + if not ((k in target_dict) and (v is None or v == "")): target_dict[k] = str_to_list(v) diff --git a/ush/setup.py b/ush/setup.py index 187304f81e..4d6841be54 100644 --- a/ush/setup.py +++ b/ush/setup.py @@ -75,23 +75,21 @@ def setup(): # # Step-1 of config # ================ - # Set the name of the configuration file containing default values for - # the experiment/workflow variables. Then load its content. + # Load the configuration file containing default values for the experiment. # # ----------------------------------------------------------------------- # EXPT_DEFAULT_CONFIG_FN = "config_defaults.yaml" cfg_d = load_config_file(os.path.join(USHdir, EXPT_DEFAULT_CONFIG_FN)) - EXPT_CONFIG_FN = cfg_d["workflow"]["EXPT_CONFIG_FN"] + import_vars(dictionary=flatten_dict(cfg_d), + env_vars=["EXPT_CONFIG_FN", + "EXTRN_MDL_NAME_ICS", "EXTRN_MDL_NAME_LBCS", + "FV3GFS_FILE_FMT_ICS", "FV3GFS_FILE_FMT_LBCS"]) # # ----------------------------------------------------------------------- # - # Load the user config file but don't source it yet. This file - # contains user-specified values for a subset of the experiment/workflow - # variables that override their default values. Note that the user- - # specified configuration file is not tracked by the repository, whereas - # the default configuration file is tracked. + # Load the user config file but don't source it yet. # # ----------------------------------------------------------------------- # From 32de8bf112225dc118f5f0412c8356af3f411fe4 Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Sun, 16 Oct 2022 02:07:10 +0000 Subject: [PATCH 5/8] Hack for Cheyenne: Emulate load_any with try_load + isloaded combo --- modulefiles/srw_common.lua | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/modulefiles/srw_common.lua b/modulefiles/srw_common.lua index 622f497342..13337d8cff 100644 --- a/modulefiles/srw_common.lua +++ b/modulefiles/srw_common.lua @@ -1,11 +1,21 @@ + +-- Until Cheyenne updates Lmod version to >=8.3.7 +-- emulate load_any with try_load + isloaded() combo +function my_load_any(pkg1, pkg2) + try_load(pkg1) + if not isloaded(pkg1) then + load(pkg2) + end +end + load("jasper/2.0.25") load("zlib/1.2.11") -load_any("png/1.6.35", "libpng/1.6.37") +my_load_any("png/1.6.35", "libpng/1.6.37") -load_any("netcdf/4.7.4", "netcdf-c/4.7.4") -load_any("netcdf/4.7.4", "netcdf-fortran/4.5.4") -load_any("pio/2.5.3", "parallelio/2.5.2") -load_any("esmf/8.3.0b09", "esmf/8.2.0") +my_load_any("netcdf/4.7.4", "netcdf-c/4.7.4") +my_load_any("netcdf/4.7.4", "netcdf-fortran/4.5.4") +my_load_any("pio/2.5.3", "parallelio/2.5.2") +my_load_any("esmf/8.3.0b09", "esmf/8.2.0") load("fms/2022.01") load("bufr/11.7.0") @@ -17,9 +27,9 @@ load("ip/3.3.3") load("sp/2.3.3") load("w3emc/2.9.2") -load_any("gftl-shared/v1.5.0", "gftl-shared/1.5.0") -load_any("yafyaml/v0.5.1", "yafyaml/0.5.1") -load_any("mapl/2.22.0-esmf-8.3.0b09", "mapl/2.11.0-esmf-8.2.0") +my_load_any("gftl-shared/v1.5.0", "gftl-shared/1.5.0") +my_load_any("yafyaml/v0.5.1", "yafyaml/0.5.1") +my_load_any("mapl/2.22.0-esmf-8.3.0b09", "mapl/2.11.0-esmf-8.2.0") load("nemsio/2.5.4") load("sfcio/1.4.1") From 07fd14868faa94baa272bcdd04d322571fe05b8a Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Sun, 16 Oct 2022 07:24:12 +0000 Subject: [PATCH 6/8] Fix NCO mode non-ensemble run dependency issue. --- parm/FV3LAM_wflow.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parm/FV3LAM_wflow.xml b/parm/FV3LAM_wflow.xml index 08cb4e45a2..1a7593a751 100644 --- a/parm/FV3LAM_wflow.xml +++ b/parm/FV3LAM_wflow.xml @@ -95,9 +95,14 @@ Directories and files. {%- if run_envir == "nco" %} +{%- if do_ensemble %} {{ run }}.@Y@m@d/{{ net }}.t@Hz.{{ ensmem_indx_name }}#{{ ensmem_indx_name }}#.dyn"> {{ run }}.@Y@m@d/{{ net }}.t@Hz.{{ ensmem_indx_name }}#{{ ensmem_indx_name }}#.phy"> {%- else %} +{{ run }}.@Y@m@d/{{ net }}.t@Hz.dyn"> +{{ run }}.@Y@m@d/{{ net }}.t@Hz.phy"> +{%- endif %} +{%- else %} @Y@m@d@H{{ slash_ensmem_subdir }}/dyn"> @Y@m@d@H{{ slash_ensmem_subdir }}/phy"> {%- endif %} From 44837d2973ab14b1460854d3035df12d45b7d6a8 Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Mon, 17 Oct 2022 21:36:54 +0000 Subject: [PATCH 7/8] Wcoss2 bug fix thanks to @chan-hoo --- ush/load_modules_wflow.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ush/load_modules_wflow.sh b/ush/load_modules_wflow.sh index d4ded9d9f1..6049805a62 100755 --- a/ush/load_modules_wflow.sh +++ b/ush/load_modules_wflow.sh @@ -41,7 +41,7 @@ scrfunc_dir=$( dirname "${scrfunc_fp}" ) HOMEdir=$( dirname "${scrfunc_dir}" ) # source version file (run) only if it is specified in versions directory -RUN_VER_FN="run_ver.${machine}" +RUN_VER_FN="run.ver.${machine}" VERSION_FILE="${HOMEdir}/versions/${RUN_VER_FN}" if [ -f ${VERSION_FILE} ]; then . ${VERSION_FILE} From ac88b4958dded20bc31d06a464c8278bf15a8719 Mon Sep 17 00:00:00 2001 From: Daniel Abdi Date: Tue, 18 Oct 2022 14:02:43 +0000 Subject: [PATCH 8/8] Remove conda activation message from wcoss2 modulefile. --- modulefiles/wflow_wcoss2.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modulefiles/wflow_wcoss2.lua b/modulefiles/wflow_wcoss2.lua index d8ed8f686f..a061b93323 100644 --- a/modulefiles/wflow_wcoss2.lua +++ b/modulefiles/wflow_wcoss2.lua @@ -11,8 +11,3 @@ load(pathJoin("python", os.getenv("python_ver"))) prepend_path("MODULEPATH","/apps/ops/test/nco/modulefiles") load(pathJoin("core/rocoto", os.getenv("rocoto_ver"))) -if mode() == "load" then - LmodMsgRaw([===[Please do the following to activate conda: - > conda activate regional_workflow -]===]) -end