diff --git a/dev/driver/driver_WAFS.README b/dev/driver/driver_WAFS.README index ea4b398..1e7db7b 100644 --- a/dev/driver/driver_WAFS.README +++ b/dev/driver/driver_WAFS.README @@ -3,12 +3,12 @@ How to use the drivers for WAFS jobs ********************************************************************* There are 1 standalone UPP job and 5 WAFS jobs -run_JWAFS_UPP.wcoss2 -run_JWAFS_GRIB.wcoss2 -run_JWAFS_GCIP.wcoss2 -run_JWAFS_GRIB2.wcoss2 -run_JWAFS_GRIB2_0P25.wcoss2 -run_JWAFS_BLENDING_0P25.wcoss2 +run_JWAFS_UPP +run_JWAFS_GRIB +run_JWAFS_GCIP +run_JWAFS_GRIB2 +run_JWAFS_GRIB2_0P25 +run_JWAFS_BLENDING_0P25 JWAFS_UPP is a downstream of GFS model outputs in netcdf @@ -30,7 +30,7 @@ Project location, defined by HOMEwafs export NWROOT=(the location holds your WAFS local inventory) export HOMEwafs=${HOMEwafs:-${NWROOT}/{the folder of your WAFS local inventory)} -A user needs to modify NWROOT or HOMEwafs to the project location +A user needs to modify NWROOT or HOMEwafs to the project location Step 2: output and working folder ===================== @@ -47,22 +47,23 @@ Change file names of error messages and script printout: Step 3: input data ===================== Specify date and cycle: -export PDY=(date as YYYYMMDD) -export cyc=(cycle as CC) +export CDATE=(date as YYYYMMDDHH) +PDY is inferred from CDATE as YYYYMMDD +cyc is inferred from CDATE as HH Specify COMIN by either setting COMIN or by setting COMPATH used by compath.py export COMPATH=(location of canned data ending with $envir/com/$RUN structure) export COMIN=(folder with a full path) -1) run_JWAFS_GRIB2.WCOSS2 and run_JWAFS_GRIB2_0P25.WCOSS2 +1) run_JWAFS_GRIB2 and run_JWAFS_GRIB2_0P25 Ensure COMPATH includes both GFS and WAFS -2) run_JWAFS_BLENDING_0P25.wcoss2 has two inputs, UK and US. +2) run_JWAFS_BLENDING_0P25 has two inputs, UK and US. US data is a downstream product of JWAFS_GRIB2_0P25, so either: -export COMPATH=($COMROOT/wafs where COMROOT is of run_JWAFS_GRIB2_0P25.wcoss2) +export COMPATH=($COMROOT/wafs where COMROOT is of run_JWAFS_GRIB2_0P25) or: -export COMINus=($COMOUT of run_JWAFS_GRIB2_0P25.wcoss2) +export COMINus=($COMOUT of run_JWAFS_GRIB2_0P25) UK data is from DCOM, either: @@ -70,7 +71,7 @@ export DCOMROOT=(a folder canned data with structure of $PDY/wgrbbul/ukmet_wafs) or: export COMINuk=${COMINuk:-$DCOMROOT/$PDY/wgrbbul/ukmet_wafs} -3) run_JWAFS_GCIP.wcoss2 has 4 inputs: gfs master files of f000 and f003, bufr, satellite and radar +3) run_JWAFS_GCIP has 4 inputs: gfs master files of f000 and f003, bufr, satellite and radar Ensure COMPATH includes GFS BUFR data is dumped from DCOM. @@ -89,7 +90,7 @@ either ensure COMPATH includes radar, or: export COMINradar=${COMINradar:-$COMROOT/radarl2/$radarl2_ver)/radar.$PDY} -4) run_JWAFS_UPP.wcoss2 and run_JWAFS_GRIB.wcoss2 +4) run_JWAFS_UPP and run_JWAFS_GRIB Ensure COMPATH includes GFS @@ -101,5 +102,5 @@ Test by comparing outputs to operational products in different ways. 2) Use wgrib2 to check date, cycle and forecast hour are correct. 3) Check the number of fields and records are correct by comparing the control files generated by g2ctl -4) Plot and compare by using GrADS to have a sanity check whether +4) Plot and compare by using GrADS to have a sanity check whether the differences are reasonable. diff --git a/dev/driver/run_JWAFS_GCIP.wcoss2 b/dev/driver/run_JWAFS_GCIP old mode 100644 new mode 100755 similarity index 100% rename from dev/driver/run_JWAFS_GCIP.wcoss2 rename to dev/driver/run_JWAFS_GCIP diff --git a/dev/driver/run_JWAFS_GRIB.wcoss2 b/dev/driver/run_JWAFS_GRIB similarity index 100% rename from dev/driver/run_JWAFS_GRIB.wcoss2 rename to dev/driver/run_JWAFS_GRIB diff --git a/dev/driver/run_JWAFS_GRIB2_0P25.wcoss2 b/dev/driver/run_JWAFS_GRIB2_0P25 old mode 100644 new mode 100755 similarity index 100% rename from dev/driver/run_JWAFS_GRIB2_0P25.wcoss2 rename to dev/driver/run_JWAFS_GRIB2_0P25 diff --git a/dev/driver/run_JWAFS_GRIB2_0P25_BLENDING.wcoss2 b/dev/driver/run_JWAFS_GRIB2_0P25_BLENDING old mode 100644 new mode 100755 similarity index 100% rename from dev/driver/run_JWAFS_GRIB2_0P25_BLENDING.wcoss2 rename to dev/driver/run_JWAFS_GRIB2_0P25_BLENDING diff --git a/dev/driver/run_JWAFS_GRIB2_1P25.wcoss2 b/dev/driver/run_JWAFS_GRIB2_1P25 old mode 100644 new mode 100755 similarity index 100% rename from dev/driver/run_JWAFS_GRIB2_1P25.wcoss2 rename to dev/driver/run_JWAFS_GRIB2_1P25 diff --git a/dev/driver/run_JWAFS_UPP.wcoss2 b/dev/driver/run_JWAFS_UPP similarity index 100% rename from dev/driver/run_JWAFS_UPP.wcoss2 rename to dev/driver/run_JWAFS_UPP diff --git a/dev/driver/submit.run_JWAFS.sh b/dev/driver/submit.run_JWAFS.sh new file mode 100755 index 0000000..1dad6c9 --- /dev/null +++ b/dev/driver/submit.run_JWAFS.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +set -eu + +# Get the root of the cloned WAFS directory +readonly DIR_ROOT=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}")")/../.." && pwd -P) + +job=${1?"Must specify a job to submit"} +CDATE=${2:-"2024081918"} + +tmpdir=/lfs/h2/emc/ptmp/${USER}/wafs.$job.${CDATE:0:8} +mkdir -p $tmpdir +cd $tmpdir + +jobcard=run_JWAFS_${job^^} +cp "${DIR_ROOT}/dev/driver/${jobcard}" . + +if [ $job = 'upp' ]; then + FHOURS="anl 000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 \ + 027 030 033 036 039 042 045 048 054 060 066 072 078 084 090 096 102 108 114 120" +elif [ $job = 'gcip' ]; then + FHOURS="000 003" +elif [ $job = 'grib2_0p25' ]; then + export FHOUT_GFS=${FHOUT_GFS:-1} + if [ $FHOUT_GFS -eq 3 ]; then #27 + export FHOURS=${FHOURS:-"6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 54 60 66 72 78 84 90 96 102 108 114 120"} + else #39 + export FHOURS=${FHOURS:-"6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 30 33 36 39 42 45 48 54 60 66 72 78 84 90 96 102 108 114 120"} + fi +elif [ $job = 'grib2_1p25' ]; then + export FHOURS=${FHOURS:-"00 06 09 12 15 18 21 24 27 30 33 36 42 48 54 60 66 72"} +elif [ $job = 'grib' ]; then + export FHOURS=${FHOURS:-"06 12 18 24 30 36 42 48 54 60 66 72"} +elif [ $job = 'grib2_0p25_blending' ]; then + export FHOUT_GFS=${FHOUT_GFS:-1} + if [ $FHOUT_GFS -eq 3 ]; then + export FHOURS=${FHOURS:-"6 9 12 15 18 21 24 27 30 33 36 39 42 45 48"} + else + export FHOURS=${FHOURS:-"6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 30 33 36 39 42 45 48"} + fi +fi + +for fhr in $FHOURS; do + sed -e "s/log.wafs_$job/log.wafs_$job.$fhr/g" \ + -e "s/PDY=.*/PDY=${CDATE:0:8}/g" \ + -e "s/cyc=.*/cyc=${CDATE:8:2}/g" \ + -e "s/fhr=.*/fhr=$fhr/g" \ + -e "s/working_wafs/working_wafs.$job.${CDATE:0:8}/g" \ + $jobcard >$jobcard.$fhr + qsub $jobcard.$fhr +done diff --git a/dev/driver/submit.run_JWAFS.wcoss2.sh b/dev/driver/submit.run_JWAFS.wcoss2.sh deleted file mode 100644 index 481ba10..0000000 --- a/dev/driver/submit.run_JWAFS.wcoss2.sh +++ /dev/null @@ -1,47 +0,0 @@ -job=$1 -JOB=`echo $job | tr 'a-z' 'A-Z'` - -PDY=20240819 -cyc=18 - -tmpdir=/lfs/h2/emc/ptmp/yali.mao/working_wafs.$job.$PDY -mkdir -p $tmpdir -cd $tmpdir - -jobcard=run_JWAFS_$JOB.wcoss2 -cp /lfs/h2/emc/vpppg/noscrub/yali.mao/git/WAFS.fork/dev/driver/$jobcard . - -if [ $job = 'upp' ] ; then - FHOURS="anl 000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 \ - 027 030 033 036 039 042 045 048 054 060 066 072 078 084 090 096 102 108 114 120" -elif [ $job = 'gcip' ] ; then - FHOURS="000 003" -elif [ $job = 'grib2_0p25' ] ; then - export FHOUT_GFS=${FHOUT_GFS:-1} - if [ $FHOUT_GFS -eq 3 ] ; then #27 - export FHOURS=${FHOURS:-"6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 54 60 66 72 78 84 90 96 102 108 114 120"} - else #39 - export FHOURS=${FHOURS:-"6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 30 33 36 39 42 45 48 54 60 66 72 78 84 90 96 102 108 114 120"} - fi -elif [ $job = 'grib2_1p25' ] ; then - export FHOURS=${FHOURS:-"00 06 09 12 15 18 21 24 27 30 33 36 42 48 54 60 66 72"} -elif [ $job = 'grib' ] ; then - export FHOURS=${FHOURS:-"06 12 18 24 30 36 42 48 54 60 66 72"} -elif [ $job = 'grib2_0p25_blending' ] ; then - export FHOUT_GFS=${FHOUT_GFS:-1} - if [ $FHOUT_GFS -eq 3 ] ; then - export FHOURS=${FHOURS:-"6 9 12 15 18 21 24 27 30 33 36 39 42 45 48"} - else - export FHOURS=${FHOURS:-"6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 30 33 36 39 42 45 48"} - fi -fi - -for fhr in $FHOURS ; do - sed -e "s/log.wafs_$job/log.wafs_$job.$fhr/g" \ - -e "s/PDY=.*/PDY=$PDY/g" \ - -e "s/cyc=.*/cyc=$cyc/g" \ - -e "s/fhr=.*/fhr=$fhr/g" \ - -e "s/working_wafs/working_wafs.$job.$PDY/g" \ - $jobcard > $jobcard.$fhr - qsub $jobcard.$fhr -done diff --git a/fix/wafs/grib_wafs.namelist b/fix/wafs/grib_wafs.namelist old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs00 b/fix/wafs/grib_wfsgfs00 old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs06 b/fix/wafs/grib_wfsgfs06 old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs12a b/fix/wafs/grib_wfsgfs12a old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs12b b/fix/wafs/grib_wfsgfs12b old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs18a b/fix/wafs/grib_wfsgfs18a old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs18b b/fix/wafs/grib_wfsgfs18b old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs24a b/fix/wafs/grib_wfsgfs24a old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs24b b/fix/wafs/grib_wfsgfs24b old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs30a b/fix/wafs/grib_wfsgfs30a old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs30b b/fix/wafs/grib_wfsgfs30b old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs36 b/fix/wafs/grib_wfsgfs36 old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs42 b/fix/wafs/grib_wfsgfs42 old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs48 b/fix/wafs/grib_wfsgfs48 old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs60 b/fix/wafs/grib_wfsgfs60 old mode 100755 new mode 100644 diff --git a/fix/wafs/grib_wfsgfs72 b/fix/wafs/grib_wfsgfs72 old mode 100755 new mode 100644 diff --git a/fix/wafs/wafs_blending_0p25_admin_msg b/fix/wafs/wafs_blending_0p25_admin_msg old mode 100755 new mode 100644 diff --git a/modulefiles/wafs_common.lua b/modulefiles/wafs_common.lua deleted file mode 100644 index 5288d9b..0000000 --- a/modulefiles/wafs_common.lua +++ /dev/null @@ -1,17 +0,0 @@ -help([[ -Load common modules to build WAFS on all machines -]]) - -local bufr_ver=os.getenv("bufr_ver") or "11.7.0" -local bacio_ver=os.getenv("bacio_ver") or "2.4.1" -local w3emc_ver=os.getenv("w3emc_ver") or "2.10.0" -local sp_ver=os.getenv("sp_ver") or "2.5.0" -local ip_ver=os.getenv("ip_ver") or "4.3.0" -local g2_ver=os.getenv("g2_ver") or "3.4.5" - -load(pathJoin("bufr", bufr_ver)) -load(pathJoin("bacio", bacio_ver)) -load(pathJoin("w3emc", w3emc_ver)) -load(pathJoin("sp", sp_ver)) -load(pathJoin("ip", ip_ver)) -load(pathJoin("g2", g2_ver)) diff --git a/modulefiles/wafs_hera.intel.lua b/modulefiles/wafs_hera.intel.lua deleted file mode 100644 index 6c29f70..0000000 --- a/modulefiles/wafs_hera.intel.lua +++ /dev/null @@ -1,17 +0,0 @@ -help([[ -Build environment for WAFS on Hera -]]) - -prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev/install/modulefiles/Core") - -local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0" -local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" -local cmake_ver=os.getenv("cmake_ver") or "3.23.1" - -load(pathJoin("stack-intel", stack_intel_ver)) -load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) -load(pathJoin("cmake", cmake_ver)) - -load("wafs_common") - -whatis("Description: WAFS environment on Hera with Intel Compilers") diff --git a/modulefiles/wafs_orion.intel.lua b/modulefiles/wafs_orion.intel.lua deleted file mode 100644 index 1815a58..0000000 --- a/modulefiles/wafs_orion.intel.lua +++ /dev/null @@ -1,17 +0,0 @@ -help([[ -Build environment for WAFS on Orion -]]) - -prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core") - -local stack_intel_ver=os.getenv("stack_intel_ver") or "2022.0.2" -local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" -local cmake_ver=os.getenv("cmake_ver") or "3.23.1" - -load(pathJoin("stack-intel", stack_intel_ver)) -load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) -load(pathJoin("cmake", cmake_ver)) - -load("wafs_common") - -whatis("Description: WAFS environment on Orion with Intel Compilers") diff --git a/sorc/CMakeLists.txt b/sorc/CMakeLists.txt index 7035817..a6ebccc 100644 --- a/sorc/CMakeLists.txt +++ b/sorc/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.19) # Get the version from the VERSION file. #file(STRINGS "VERSION" pVersion) -set(pVersion 1.0.0) +set(pVersion 7.0.0) project( wafs diff --git a/sorc/build_wafs.sh b/sorc/build_wafs.sh index 96d77fb..a84173c 100755 --- a/sorc/build_wafs.sh +++ b/sorc/build_wafs.sh @@ -8,20 +8,18 @@ readonly DIR_ROOT=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}" )" )/.." # User Options BUILD_TYPE=${BUILD_TYPE:-"Release"} CMAKE_OPTS=${CMAKE_OPTS:-} +MACHINE_ID=${MACHINE_ID:-"wcoss2"} COMPILER=${COMPILER:-"intel"} BUILD_DIR=${BUILD_DIR:-"${DIR_ROOT}/sorc/build/wafs"} INSTALL_PREFIX=${INSTALL_PREFIX:-"${DIR_ROOT}/sorc/install/wafs"} #==============================================================================# -# Detect machine (sets MACHINE_ID) -source "${DIR_ROOT}/ush/detect_machine.sh" - # Load modules -source "${DIR_ROOT}/ush/module-reset.sh" +module reset source "${DIR_ROOT}/versions/build.ver" module use "${DIR_ROOT}/modulefiles" -module load wafs_"${MACHINE_ID}.${COMPILER}" +module load "wafs_${MACHINE_ID}.${COMPILER}" module list # Collect BUILD Options diff --git a/ush/detect_machine.sh b/ush/detect_machine.sh deleted file mode 100755 index 683ee0d..0000000 --- a/ush/detect_machine.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/bash - -# The authoritative copy of this script lives in the ufs-weather-model at: -# https://github.com/ufs-community/ufs-weather-model/blob/develop/tests/detect_machine.sh -# If any local modifications are made or new platform support added, -# please consider opening an issue and a PR to the ufs-weather-model -# so that this copy remains in sync with its authoritative source -# -# Thank you for your contribution - -# If the MACHINE_ID variable is set, skip this script. -[[ -n ${MACHINE_ID:-} ]] && return - -# First detect w/ hostname -case $(hostname -f) in - - adecflow0[12].acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=acorn ;; ### acorn - alogin0[12].acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=acorn ;; ### acorn - clogin0[1-9].cactus.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### cactus01-9 - clogin10.cactus.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### cactus10 - dlogin0[1-9].dogwood.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### dogwood01-9 - dlogin10.dogwood.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### dogwood10 - - gaea5[1-8]) MACHINE_ID=gaea ;; ### gaea51-58 - gaea5[1-8].ncrc.gov) MACHINE_ID=gaea ;; ### gaea51-58 - - hfe0[1-9]) MACHINE_ID=hera ;; ### hera01-09 - hfe1[0-2]) MACHINE_ID=hera ;; ### hera10-12 - hecflow01) MACHINE_ID=hera ;; ### heraecflow01 - - s4-submit.ssec.wisc.edu) MACHINE_ID=s4 ;; ### s4 - - fe[1-8]) MACHINE_ID=jet ;; ### jet01-8 - tfe[12]) MACHINE_ID=jet ;; ### tjet1-2 - - Orion-login-[1-4].HPC.MsState.Edu) MACHINE_ID=orion ;; ### orion1-4 - - [Hh]ercules-login-[1-4].[Hh][Pp][Cc].[Mm]s[Ss]tate.[Ee]du) MACHINE_ID=hercules ;; ### hercules1-4 - - login[1-4].stampede2.tacc.utexas.edu) MACHINE_ID=stampede ;; ### stampede1-4 - - login0[1-2].expanse.sdsc.edu) MACHINE_ID=expanse ;; ### expanse1-2 - - discover3[1-5].prv.cube) MACHINE_ID=discover ;; ### discover31-35 - *) MACHINE_ID=UNKNOWN ;; # Unknown platform -esac - -if [[ ${MACHINE_ID} == "UNKNOWN" ]]; then - case ${PW_CSP:-} in - "aws" | "google" | "azure") MACHINE_ID=noaacloud ;; - *) PW_CSP="UNKNOWN" - esac -fi - -# Overwrite auto-detect with MACHINE if set -MACHINE_ID=${MACHINE:-${MACHINE_ID}} - -# If MACHINE_ID is no longer UNKNNOWN, return it -if [[ "${MACHINE_ID}" != "UNKNOWN" ]]; then - return -fi - -# Try searching based on paths since hostname may not match on compute nodes -if [[ -d /lfs/h3 ]]; then - # We are on NOAA Cactus or Dogwood - MACHINE_ID=wcoss2 -elif [[ -d /lfs/h1 && ! -d /lfs/h3 ]]; then - # We are on NOAA TDS Acorn - MACHINE_ID=acorn -elif [[ -d /mnt/lfs1 ]]; then - # We are on NOAA Jet - MACHINE_ID=jet -elif [[ -d /scratch1 ]]; then - # We are on NOAA Hera - MACHINE_ID=hera -elif [[ -d /work ]]; then - # We are on MSU Orion or Hercules - if [[ -d /apps/other ]]; then - # We are on Hercules - MACHINE_ID=hercules - else - MACHINE_ID=orion - fi -elif [[ -d /gpfs && -d /ncrc ]]; then - # We are on GAEA. - MACHINE_ID=gaea -elif [[ -d /data/prod ]]; then - # We are on SSEC's S4 - MACHINE_ID=s4 -else - echo WARNING: UNKNOWN PLATFORM 1>&2 -fi diff --git a/ush/module-reset.sh b/ush/module-reset.sh deleted file mode 100755 index c5838ec..0000000 --- a/ush/module-reset.sh +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -set -u - -if [[ $MACHINE_ID = jet* ]] ; then - # We are on NOAA Jet - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /apps/lmod/lmod/init/bash - fi - export LMOD_SYSTEM_DEFAULT_MODULES=contrib - module reset - -elif [[ $MACHINE_ID = hera* ]] ; then - # We are on NOAA Hera - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /apps/lmod/lmod/init/bash - fi - export LMOD_SYSTEM_DEFAULT_MODULES=contrib - module reset - -elif [[ $MACHINE_ID = orion* ]] ; then - # We are on Orion - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /apps/lmod/lmod/init/bash - fi - export LMOD_SYSTEM_DEFAULT_MODULES=contrib - module reset - -elif [[ $MACHINE_ID = hercules* ]] ; then - # We are on Hercules - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /apps/other/lmod/lmod/init/bash - fi - export LMOD_SYSTEM_DEFAULT_MODULES=contrib - module reset - -elif [[ $MACHINE_ID = s4* ]] ; then - # We are on SSEC Wisconsin S4 - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /usr/share/lmod/lmod/init/bash - fi - export LMOD_SYSTEM_DEFAULT_MODULES=license_intel - module reset - -elif [[ $MACHINE_ID = wcoss2 ]]; then - # We are on WCOSS2 - module reset - -elif [[ $MACHINE_ID = cheyenne* ]] ; then - # We are on NCAR Cheyenne - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /glade/u/apps/ch/modulefiles/default/localinit/localinit.sh - fi - module purge - -elif [[ $MACHINE_ID = stampede* ]] ; then - # We are on TACC Stampede - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /opt/apps/lmod/lmod/init/bash - fi - module purge - -elif [[ $MACHINE_ID = gaea* ]] ; then - # We are on GAEA. - if ( ! eval module help > /dev/null 2>&1 ) ; then - # We cannot simply load the module command. The GAEA - # /etc/profile modifies a number of module-related variables - # before loading the module command. Without those variables, - # the module command fails. Hence we actually have to source - # /etc/profile here. - source /etc/profile - __ms_source_etc_profile=yes - else - __ms_source_etc_profile=no - fi - module purge - # clean up after purge - unset _LMFILES_ - unset _LMFILES_000 - unset _LMFILES_001 - unset LOADEDMODULES - module load modules - if [[ -d /opt/cray/ari/modulefiles ]] ; then - module use -a /opt/cray/ari/modulefiles - fi - if [[ -d /opt/cray/pe/ari/modulefiles ]] ; then - module use -a /opt/cray/pe/ari/modulefiles - fi - if [[ -d /opt/cray/pe/craype/default/modulefiles ]] ; then - module use -a /opt/cray/pe/craype/default/modulefiles - fi - if [[ -s /etc/opt/cray/pe/admin-pe/site-config ]] ; then - source /etc/opt/cray/pe/admin-pe/site-config - fi - if [[ "$__ms_source_etc_profile" == yes ]] ; then - source /etc/profile - unset __ms_source_etc_profile - fi - -elif [[ $MACHINE_ID = expanse* ]]; then - # We are on SDSC Expanse - if ( ! eval module help > /dev/null 2>&1 ) ; then - source /etc/profile.d/modules.sh - fi - module purge - module load slurm/expanse/20.02.3 - -elif [[ $MACHINE_ID = discover* ]]; then - # We are on NCCS discover - export SPACK_ROOT=/discover/nobackup/mapotts1/spack - export PATH=$PATH:$SPACK_ROOT/bin - . $SPACK_ROOT/share/spack/setup-env.sh - -else - echo WARNING: UNKNOWN PLATFORM 1>&2 -fi diff --git a/versions/build.ver b/versions/build.ver old mode 100755 new mode 100644 diff --git a/versions/run.ver b/versions/run.ver index 6685f91..45999f9 100644 --- a/versions/run.ver +++ b/versions/run.ver @@ -2,26 +2,21 @@ export wafs_ver=v7.0.0 export gfs_ver=v16.3 export radarl2_ver=v1.2 +export bufr_dump_ver=1.1.2 +export util_shared_ver=1.4.0 -export intel_ver=19.1.3.304 export PrgEnvintel_ver=8.1.0 +export intel_ver=19.1.3.304 export craype_ver=2.7.10 +export craympich_ver=8.1.9 +export craypals_ver=1.1.3 -export libjpeg_ver=9c -export prod_util_ver=2.0.14 export prod_envir_ver=2.0.6 -export grib_util_ver=1.2.3 -export wgrib2_ver=2.0.7 -#For make_NTC_file.pl in blending -export util_shared_ver=1.4.0 - -# For GCIP -export bufr_dump_ver=1.1.2 - -# For UPP +export libjpeg_ver=9c export hdf5_ver=1.10.6 export netcdf_ver=4.7.4 export g2tmpl_ver=1.9.1 -export craympich_ver=8.1.9 -export craypals_ver=1.1.3 +export prod_util_ver=2.0.14 +export grib_util_ver=1.2.3 +export wgrib2_ver=2.0.7