Skip to content

Commit

Permalink
Wcoss2 nco (#35)
Browse files Browse the repository at this point in the history
* address CFP machine checks, jlogfile, compath

* address CFP machine checks on gldas_forcing.sh

* use ftn to replace mpifort on wcoss2

* addressed the requested changes from NCO

Co-authored-by: Helin Wei <Helin.Wei@dlogin02.dogwood.wcoss2.ncep.noaa.gov>
Co-authored-by: Helin Wei <Helin.Wei@dlogin03.dogwood.wcoss2.ncep.noaa.gov>
  • Loading branch information
3 people authored Jan 12, 2022
1 parent e757e6e commit 06b5bf0
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 40 deletions.
3 changes: 0 additions & 3 deletions jobs/JGDAS_ATMOS_GLDAS
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ export pgmerr=errfile
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gdas"}}
export COMPONENT=${COMPONENT:-atmos}
if [ $RUN_ENVIR = "nco" ]; then
export ROTDIR=${COMROOT:?}/$NET/$envir
fi


##############################################
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/gdas2gldas.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load environment to run GLDAS on WCOSS2

envvar_ver=os.getenv("envvar_ver") or "1.0"
PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0"
craype_ver=os.getenv("craype_ver") or "2.7.8"
craype_ver=os.getenv("craype_ver") or "2.7.10"
intel_ver=os.getenv("intel_ver") or "19.1.3.304"
cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9"
load(pathJoin("envvar", envvar_ver))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/gldas2gdas.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load environment to run GLDAS on WCOSS2

envvar_ver=os.getenv("envvar_ver") or "1.0"
PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0"
craype_ver=os.getenv("craype_ver") or "2.7.8"
craype_ver=os.getenv("craype_ver") or "2.7.10"
intel_ver=os.getenv("intel_ver") or "19.1.3.304"
cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9"
load(pathJoin("envvar", envvar_ver))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/gldas_forcing.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load environment to run GLDAS on WCOSS2

envvar_ver=os.getenv("envvar_ver") or "1.0"
PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0"
craype_ver=os.getenv("craype_ver") or "2.7.8"
craype_ver=os.getenv("craype_ver") or "2.7.10"
intel_ver=os.getenv("intel_ver") or "19.1.3.304"
cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9"
load(pathJoin("envvar", envvar_ver))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/gldas_model.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load environment to run GLDAS on WCOSS2

envvar_ver=os.getenv("envvar_ver") or "1.0"
PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0"
craype_ver=os.getenv("craype_ver") or "2.7.8"
craype_ver=os.getenv("craype_ver") or "2.7.10"
intel_ver=os.getenv("intel_ver") or "19.1.3.304"
cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9"
load(pathJoin("envvar", envvar_ver))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/gldas_post.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load environment to run GLDAS on WCOSS2

envvar_ver=os.getenv("envvar_ver") or "1.0"
PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0"
craype_ver=os.getenv("craype_ver") or "2.7.8"
craype_ver=os.getenv("craype_ver") or "2.7.10"
intel_ver=os.getenv("intel_ver") or "19.1.3.304"
cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9"
load(pathJoin("envvar", envvar_ver))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/gldas_rst.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load environment to run GLDAS on WCOSS2

envvar_ver=os.getenv("envvar_ver") or "1.0"
PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0"
craype_ver=os.getenv("craype_ver") or "2.7.8"
craype_ver=os.getenv("craype_ver") or "2.7.10"
intel_ver=os.getenv("intel_ver") or "19.1.3.304"
cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9"
load(pathJoin("envvar", envvar_ver))
Expand Down
6 changes: 3 additions & 3 deletions sorc/build_gdas2gldas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
module purge
module reset
module use ../modulefiles
module load gdas2gldas.$target > /dev/null 2>&1
else
export MOD_PATH=${cwd}/lib/modulefiles
if [ $target = wcoss_cray ]; then
module purge
module reset
module use ../modulefiles
module load gdas2gldas.${target}_userlib > /dev/null 2>&1
else
module purge
module reset
module use ../modulefiles
module load gdas2gldas.$target > /dev/null 2>&1
fi
Expand Down
6 changes: 3 additions & 3 deletions sorc/build_gldas2gdas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
module purge
module reset
module use ../modulefiles
module load gldas2gdas.$target > /dev/null 2>&1
else
export MOD_PATH=${cwd}/lib/modulefiles
if [ $target = wcoss_cray ]; then
module purge
module reset
module use ../modulefiles
module load gldas2gdas.${target}_userlib > /dev/null 2>&1
else
module purge
module reset
module use ../modulefiles
module load gldas2gdas.$target > /dev/null 2>&1
fi
Expand Down
6 changes: 3 additions & 3 deletions sorc/build_gldas_forcing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
module purge
module reset
module use ../modulefiles
module load gldas_forcing.$target > /dev/null 2>&1
else
export MOD_PATH=${cwd}/lib/modulefiles
if [ $target = wcoss_cray ]; then
module purge
module reset
module use ../modulefiles
module load gldas_forcing.${target}_userlib > /dev/null 2>&1
else
module purge
module reset
module use ../modulefiles
module load gldas_forcing.$target > /dev/null 2>&1
fi
Expand Down
6 changes: 3 additions & 3 deletions sorc/build_gldas_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
module purge
module reset
module use ../modulefiles
module load gldas_model.$target > /dev/null 2>&1
else
export MOD_PATH=${cwd}/lib/modulefiles
if [ $target = wcoss_cray ]; then
module purge
module reset
module use ../modulefiles
module load gldas_model.${target}_userlib > /dev/null 2>&1
else
module purge
module reset
module use ../modulefiles
module load gldas_model.$target > /dev/null 2>&1
fi
Expand Down
6 changes: 3 additions & 3 deletions sorc/build_gldas_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
module purge
module reset
module use ../modulefiles
module load gldas_post.$target > /dev/null 2>&1
else
export MOD_PATH=${cwd}/lib/modulefiles
if [ $target = wcoss_cray ]; then
module purge
module reset
module use ../modulefiles
module load gldas_post.${target}_userlib > /dev/null 2>&1
else
module purge
module reset
module use ../modulefiles
module load gldas_post.$target > /dev/null 2>&1
fi
Expand Down
6 changes: 3 additions & 3 deletions sorc/build_gldas_rst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
module purge
module reset
module use ../modulefiles
module load gldas_rst.$target > /dev/null 2>&1
else
export MOD_PATH=${cwd}/lib/modulefiles
if [ $target = wcoss_cray ]; then
module purge
module reset
module use ../modulefiles
module load gldas_rst.${target}_userlib > /dev/null 2>&1
else
module purge
module reset
module use ../modulefiles
module load gldas_rst.$target > /dev/null 2>&1
fi
Expand Down
25 changes: 12 additions & 13 deletions sorc/machine-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ if [[ -d /lfs3 ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
target=jet
module purge
module reset
elif [[ -d /scratch1 ]] ; then
# We are on NOAA Hera
if ( ! eval module help > /dev/null 2>&1 ) ; then
echo load the module command 1>&2
source /apps/lmod/lmod/init/$__ms_shell
fi
target=hera
module purge
module reset
MOD_PATH=/scratch2/NCEPDEV/nwprod/NCEPLIBS/modulefiles
elif [[ -d /work ]] ; then
# We are on Orion
Expand All @@ -43,7 +43,7 @@ elif [[ -d /work ]] ; then
source /apps/lmod/lmod/init/$__ms_shell
fi
target=orion
module purge
module reset
MOD_PATH=/apps/contrib/NCEPLIBS/orion/modulefiles
elif [[ -d /gpfs/hps && -e /etc/SuSE-release ]] ; then
# We are on NOAA Luna or Surge
Expand All @@ -53,17 +53,17 @@ elif [[ -d /gpfs/hps && -e /etc/SuSE-release ]] ; then
fi
target=wcoss_cray

# Silence the "module purge" to avoid the expected error messages
# Silence the "module reset" to avoid the expected error messages
# related to modules that load modules.
module purge > /dev/null 2>&1
module reset > /dev/null 2>&1
module use /usrx/local/prod/modulefiles
module use /gpfs/hps/nco/ops/nwprod/lib/modulefiles
module use /gpfs/hps/nco/ops/nwprod/modulefiles
module use /opt/cray/alt-modulefiles
module use /opt/cray/craype/default/alt-modulefiles
module use /opt/cray/ari/modulefiles
module use /opt/modulefiles
module purge > /dev/null 2>&1
module reset > /dev/null 2>&1

# Workaround until module issues are fixed:
#unset _LMFILES_
Expand All @@ -86,7 +86,7 @@ elif [[ -L /usrx && "$( readlink /usrx 2> /dev/null )" =~ dell ]] ; then
source /usrx/local/prod/lmod/lmod/init/$__ms_shell
fi
target=wcoss_dell_p3
module purge
module reset

elif [[ -d /lfs/h2 ]] ; then
# We are on NOAA Cactus or Dogwood
Expand All @@ -95,8 +95,7 @@ elif [[ -d /lfs/h2 ]] ; then
source /usr/share/lmod/lmod/init/$__ms_shell
fi
target=wcoss2
module purge
module load envvar/1.0
module reset

elif [[ -d /dcom && -d /hwrf ]] ; then
# We are on NOAA Tide or Gyre
Expand All @@ -105,15 +104,15 @@ elif [[ -d /dcom && -d /hwrf ]] ; then
source /usrx/local/Modules/default/init/$__ms_shell
fi
target=wcoss
module purge
module reset
elif [[ -d /glade ]] ; then
# We are on NCAR Yellowstone
if ( ! eval module help > /dev/null 2>&1 ) ; then
echo load the module command 1>&2
. /usr/share/Modules/init/$__ms_shell
fi
target=yellowstone
module purge
module reset
elif [[ -d /lustre && -d /ncrc ]] ; then
# We are on GAEA.
if ( ! eval module help > /dev/null 2>&1 ) ; then
Expand All @@ -126,11 +125,11 @@ elif [[ -d /lustre && -d /ncrc ]] ; then
source /etc/profile
fi
target=gaea
module purge
module reset
elif [[ -d /data/prod ]] ; then
# We are on SSEC S4
target=s4
module purge
module reset
else
echo WARNING: UNKNOWN PLATFORM 1>&2
fi
Expand Down

0 comments on commit 06b5bf0

Please sign in to comment.