diff --git a/modulefiles/module-setup.csh.inc b/modulefiles/module-setup.csh.inc index 57051e84d0..b342cb9655 100644 --- a/modulefiles/module-setup.csh.inc +++ b/modulefiles/module-setup.csh.inc @@ -2,7 +2,13 @@ set __ms_shell=csh eval "if ( -d / ) set __ms_shell=tcsh" -if ( { test -d /lfs3 } ) then +if ( { test -d /lfs/f1 } ) then + # We are on NOAA Cactus or Dogwood + if ( ! { module help >& /dev/null } ) then + source /usr/share/lmod/lmod/init/$__ms_shell + fi + module reset +else if ( { test -d /lfs3 } ) then if ( ! { module help >& /dev/null } ) then source /apps/lmod/lmod/init/$__ms_shell endif diff --git a/modulefiles/module-setup.sh.inc b/modulefiles/module-setup.sh.inc index b55643719c..419b308985 100644 --- a/modulefiles/module-setup.sh.inc +++ b/modulefiles/module-setup.sh.inc @@ -16,7 +16,13 @@ else __ms_shell=sh fi -if [[ -d /lfs3 ]] ; then +if [[ -d /lfs/f1 ]] ; then + # We are on NOAA Cactus or Dogwood + if ( ! eval module help > /dev/null 2>&1 ) ; then + source /usr/share/lmod/lmod/init/$__ms_shell + fi + module reset +elif [[ -d /lfs3 ]] ; then # We are on NOAA Jet if ( ! eval module help > /dev/null 2>&1 ) ; then source /apps/lmod/lmod/init/$__ms_shell diff --git a/modulefiles/module_base.wcoss2.lua b/modulefiles/module_base.wcoss2.lua new file mode 100644 index 0000000000..5e7e9e7eea --- /dev/null +++ b/modulefiles/module_base.wcoss2.lua @@ -0,0 +1,39 @@ +help([[ +Load environment to run GFS on WCOSS2 +]]) + +load(pathJoin("PrgEnv-intel", "8.1.0")) +load(pathJoin("craype", "2.7.10")) +load(pathJoin("intel", "19.1.3.304")) +load(pathJoin("cray-mpich", "8.1.9")) +load(pathJoin("cray-pals", "1.0.17")) +load(pathJoin("esmf", "8.0.1")) +load(pathJoin("cfp", "2.0.4")) +setenv("USE_CFP","YES") + +load(pathJoin("python", "3.8.6")) +load(pathJoin("prod_envir", "2.0.4")) +load(pathJoin("gempak", "7.14.1")) +load(pathJoin("perl", "5.32.0")) +load(pathJoin("libjpeg", "9c")) + +load(pathJoin("cdo", "1.9.8")) + +load(pathJoin("hdf5", "1.10.6")) +load(pathJoin("netcdf", "4.7.4")) + +load(pathJoin("udunits", "2.2.28")) +load(pathJoin("gsl", "2.7")) +load(pathJoin("nco", "4.7.9")) +load(pathJoin("prod_util", "2.0.9")) +load(pathJoin("grib_util", "1.2.3")) +load(pathJoin("bufr_dump", "1.0.0")) +load(pathJoin("util_shared", "1.4.0")) +load(pathJoin("crtm", "2.3.0")) +load(pathJoin("g2tmpl", "1.9.1")) +load(pathJoin("wgrib2", "2.0.7")) + +prepend_path("MODULEPATH", pathJoin("/lfs/h2/emc/global/save/emc.global/git/prepobs/v1.0.1/modulefiles")) +load(pathJoin("prepobs", "1.0.1")) + +whatis("Description: GFS run environment") diff --git a/modulefiles/modulefile.ww3.wcoss2.lua b/modulefiles/modulefile.ww3.wcoss2.lua new file mode 100644 index 0000000000..8923ee6c7a --- /dev/null +++ b/modulefiles/modulefile.ww3.wcoss2.lua @@ -0,0 +1,22 @@ +help([[ +Build environment for WW3 on WCOSS2 +]]) + +load(pathJoin("PrgEnv-intel", "8.1.0")) +load(pathJoin("craype", "2.7.10")) +load(pathJoin("intel", "19.1.3.304")) +load(pathJoin("cray-mpich", "8.1.9")) + +load(pathJoin("cmake", "3.20.2")) + +load(pathJoin("jasper", "2.0.25")) +load(pathJoin("zlib", "1.2.11")) +load(pathJoin("libpng", "1.6.37")) + +load(pathJoin("bacio", "2.4.1")) +load(pathJoin("g2", "3.4.5")) + +load(pathJoin("hdf5", "1.10.6")) +load(pathJoin("netcdf", "4.7.4")) + +load(pathJoin("w3nco", "2.4.1")) diff --git a/modulefiles/workflow_utils.wcoss2.lua b/modulefiles/workflow_utils.wcoss2.lua new file mode 100644 index 0000000000..34b54a69c5 --- /dev/null +++ b/modulefiles/workflow_utils.wcoss2.lua @@ -0,0 +1,32 @@ +help([[ +Build environment for workflow utilities on WCOSS2 +]]) + +load(pathJoin("PrgEnv-intel", "8.1.0")) +load(pathJoin("craype", "2.7.10")) +load(pathJoin("intel", "19.1.3.304")) +load(pathJoin("cray-mpich", "8.1.9")) + +load(pathJoin("cmake", "3.20.2")) + +load(pathJoin("jasper", "2.0.25")) +load(pathJoin("zlib", "1.2.11")) +load(pathJoin("libpng", "1.6.37")) + +load(pathJoin("hdf5", "1.10.6")) +load(pathJoin("netcdf", "4.7.4")) + +load(pathJoin("bacio", "2.4.1")) +load(pathJoin("g2", "3.4.5")) +load(pathJoin("ip", "3.3.3")) +load(pathJoin("nemsio", "2.5.2")) +load(pathJoin("sp", "2.3.3")) +load(pathJoin("w3emc", "2.9.2")) +load(pathJoin("w3nco", "2.4.1")) +load(pathJoin("nemsiogfs", "2.5.3")) +load(pathJoin("ncio", "1.0.0")) +load(pathJoin("landsfcutil", "2.4.1")) +load(pathJoin("sigio", "2.3.2")) +load(pathJoin("bufr", "11.5.0")) + +load(pathJoin("wgrib2", "2.0.8")) diff --git a/sorc/link_workflow.sh b/sorc/link_workflow.sh index ff77012228..62ff535e04 100755 --- a/sorc/link_workflow.sh +++ b/sorc/link_workflow.sh @@ -8,16 +8,16 @@ machine=${2} if [ $# -lt 2 ]; then echo '***ERROR*** must specify two arguements: (1) RUN_ENVIR, (2) machine' - echo ' Syntax: link_workflow.sh ( nco | emc ) ( hera | orion | jet | stampede )' + echo ' Syntax: link_workflow.sh ( nco | emc ) ( wcoss2 | hera | orion | jet | stampede )' exit 1 fi if [ $RUN_ENVIR != emc -a $RUN_ENVIR != nco ]; then - echo ' Syntax: link_workflow.sh ( nco | emc ) ( hera | orion | jet | stampede )' + echo ' Syntax: link_workflow.sh ( nco | emc ) ( wcoss2 | hera | orion | jet | stampede )' exit 1 fi -if [ $machine != hera -a $machine != orion -a $machine != jet -a $machine != stampede ]; then - echo ' Syntax: link_workflow.sh ( nco | emc ) ( hera | orion | jet | stampede )' +if [ $machine != wcoss2 -a $machine != hera -a $machine != orion -a $machine != jet -a $machine != stampede ]; then + echo ' Syntax: link_workflow.sh ( nco | emc ) ( wcoss2 | hera | orion | jet | stampede )' exit 1 fi @@ -34,7 +34,9 @@ $LINK ufs_model.fd/FV3/upp upp.fd #------------------------------ #--model fix fields #------------------------------ -if [ $machine = "hera" ]; then +if [ $machine = "wcoss2" ]; then + FIX_DIR="/lfs/h2/emc/global/noscrub/emc.global/FIX/fix_NEW" +elif [ $machine = "hera" ]; then FIX_DIR="/scratch1/NCEPDEV/global/glopara/fix_NEW" elif [ $machine = "orion" ]; then FIX_DIR="/work/noaa/global/glopara/fix_NEW" diff --git a/sorc/machine-setup.sh b/sorc/machine-setup.sh index 27c4d33ee9..74c7a705de 100644 --- a/sorc/machine-setup.sh +++ b/sorc/machine-setup.sh @@ -20,7 +20,16 @@ target="" USERNAME=$(echo $LOGNAME | awk '{ print tolower($0)'}) ##--------------------------------------------------------------------------- export hname=$(hostname | cut -c 1,1) -if [[ -d /work ]] ; then +if [[ -d /lfs/f1 ]] ; then + # We are on NOAA Cactus or Dogwood + if ( ! eval module help > /dev/null 2>&1 ) ; then + echo load the module command 1>&2 + source /usr/share/lmod/lmod/init/$__ms_shell + fi + target=wcoss2 + module reset + +elif [[ -d /work ]] ; then # We are on MSU Orion if ( ! eval module help > /dev/null 2>&1 ) ; then echo load the module command 1>&2 diff --git a/ush/load_fv3gfs_modules.sh b/ush/load_fv3gfs_modules.sh index 3979d9184d..73aa0fbd06 100755 --- a/ush/load_fv3gfs_modules.sh +++ b/ush/load_fv3gfs_modules.sh @@ -15,7 +15,10 @@ source "$HOMEgfs/modulefiles/module-setup.sh.inc" # Load our modules: module use "$HOMEgfs/modulefiles" -if [[ -d /lfs3 ]] ; then +if [[ -d /lfs/f1 ]]; then + # We are on WCOSS2 (Cactus or Dogwood) + module load module_base.wcoss2 +elif [[ -d /lfs3 ]] ; then # We are on NOAA Jet module load module_base.jet elif [[ -d /scratch1 ]] ; then