Skip to content

Commit

Permalink
Issue #164 - updates to partial build and stack updates for tropcy build
Browse files Browse the repository at this point in the history
  • Loading branch information
KateFriedman-NOAA committed Jan 25, 2021
1 parent e09cb35 commit bc273e9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 38 deletions.
28 changes: 16 additions & 12 deletions modulefiles/modulefile.storm_reloc_v6.0.0.hera
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@
## Module file for storm_reloc_v6.0.0 - Hera
#############################################################

module use -a /scratch2/NCEPDEV/nwprod/NCEPLIBS/modulefiles
module load w3emc/2.3.0
module load w3nco/2.0.6
module load bacio/2.0.2
module load sp/2.0.2
module load nemsio/2.2.3
module load nemsiogfs/2.2.1
module load sigio/2.1.1
module load jasper/1.900.1
module load png/1.2.44
module load z/1.2.11
module load g2/3.1.0
module use /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack
module load hpc/1.1.0
module load hpc-intel/18.0.5.274
module load hpc-impi/2018.0.4

module load w3emc/2.7.3
module load w3nco/2.4.1
module load bacio/2.4.1
module load sp/2.3.3
module load nemsio/2.5.2
module load nemsiogfs/2.5.3
module load sigio/2.3.2
module load jasper/2.0.22
module load png/1.6.35
module load zlib/1.2.11
module load g2/3.4.1

set FC mpiifort
30 changes: 9 additions & 21 deletions sorc/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ source ./machine-setup.sh > /dev/null 2>&1
ERRSCRIPT=${ERRSCRIPT:-'eval [[ $err = 0 ]]'}
err=0

#------------------------------------
# build libraries first
#------------------------------------
$Build_libs && {
echo " .... Library build not currently supported .... "
#echo " .... Building libraries .... "
#./build_libs.sh > $logs_dir/build_libs.log 2>&1
}

#------------------------------------
# build fv3
#------------------------------------
Expand Down Expand Up @@ -269,19 +260,16 @@ fi
#------------------------------------
# build gfs_util
#------------------------------------
# Only build on WCOSS
if [ $target = wcoss -o $target = wcoss_cray -o $target = wcoss_dell_p3 ]; then
$Build_gfs_util && {
echo " .... Building gfs_util .... "
./build_gfs_util.sh > $logs_dir/build_gfs_util.log 2>&1
rc=$?
if [[ $rc -ne 0 ]] ; then
echo "Fatal error in building gfs_util."
echo "The log file is in $logs_dir/build_gfs_util.log"
fi
((err+=$rc))
}
$Build_gfs_util && {
echo " .... Building gfs_util .... "
./build_gfs_util.sh > $logs_dir/build_gfs_util.log 2>&1
rc=$?
if [[ $rc -ne 0 ]] ; then
echo "Fatal error in building gfs_util."
echo "The log file is in $logs_dir/build_gfs_util.log"
fi
((err+=$rc))
}

#------------------------------------
# Exception Handling
Expand Down
8 changes: 5 additions & 3 deletions sorc/build_tropcy_NEMS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ fi

source ../modulefiles/modulefile.storm_reloc_v6.0.0.$target
export FC=mpiifort
export JASPER_LIB=${JASPER_LIB:-$JASPER_LIBRARY_DIRS/libjasper.a}
export JASPER_LIB=${JASPER_LIB:-${JASPER_LIBRARIES}/libjasper.a}
export PNG_LIB=${PNG_LIB:-${PNG_ROOT}/lib64/libpng.a}
export Z_LIB=${Z_LIB:-${ZLIB_LIBRARIES}/libz.a}

export INC="${G2_INCd} -I${NEMSIO_INC}"
export LIBS="${W3EMC_LIBd} ${W3NCO_LIBd} ${BACIO_LIB4} ${G2_LIBd} ${PNG_LIB} ${JASPER_LIB} ${Z_LIB}"
export LIBS_SUP="${W3EMC_LIBd} ${W3NCO_LIBd}"
echo lset
echo lset
export LIBS_REL="${W3NCO_LIB4}"
export LIBS_REL="${NEMSIOGFS_LIB} ${NEMSIO_LIB} ${LIBS_REL} ${SIGIO_LIB4} ${BACIO_LIB4} ${SP_LIBd}"
export LIBS_SIG="${SIGIO_INC4}"
export LIBS_REL="${NEMSIOGFS_LIB} ${NEMSIO_LIB} ${LIBS_REL} ${SIGIO_LIB} ${BACIO_LIB4} ${SP_LIBd}"
export LIBS_SIG="${SIGIO_INC}"
export LIBS_SYN_GET="${W3NCO_LIB4}"
export LIBS_SYN_MAK="${W3NCO_LIB4} ${BACIO_LIB4}"
export LIBS_SYN_QCT="${W3NCO_LIB8}"
Expand Down
1 change: 0 additions & 1 deletion sorc/fv3gfs_build.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#
# ***** configuration of fv3gfs build *****

Building libraries (libs) ............................. no
Building fv3gfs (fv3gfs) .............................. yes
Building gsi (gsi) .................................... yes
Building gldas (gldas) ................................ yes
Expand Down
2 changes: 1 addition & 1 deletion sorc/partial_build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# define the array of the name of build program
#
declare -a Build_prg=("Build_libs" "Build_fv3gfs" \
declare -a Build_prg=("Build_fv3gfs" \
"Build_gsi" \
"Build_gldas" \
"Build_ncep_post" \
Expand Down

0 comments on commit bc273e9

Please sign in to comment.