Skip to content

Commit

Permalink
Issue #94 - generalization updates to link script
Browse files Browse the repository at this point in the history
- change 'nco' mode to 'prod' mode
- change 'emc' mode to 'dev' mode
- update machine values to match target names
  • Loading branch information
KateFriedman-NOAA committed Jun 29, 2020
1 parent 28b1faf commit 30e56f2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sorc/link_fv3gfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ machine=${2}

if [ $# -lt 2 ]; then
echo '***ERROR*** must specify two arguements: (1) RUN_ENVIR, (2) machine'
echo ' Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | hera )'
echo ' Syntax: link_fv3gfs.sh ( prod | dev ) ( wcoss_cray | wcoss_dell_p3 | hera )'
exit 1
fi

if [ $RUN_ENVIR != emc -a $RUN_ENVIR != nco ]; then
echo 'Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | hera )'
if [ $RUN_ENVIR != dev -a $RUN_ENVIR != prod ]; then
echo 'Syntax: link_fv3gfs.sh ( prod | dev ) ( wcoss_cray | wcoss_dell_p3 | hera )'
exit 1
fi
if [ $machine != cray -a $machine != dell -a $machine != hera ]; then
echo 'Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | hera )'
if [ $machine != wcoss_cray -a $machine != wcoss_dell_p3 -a $machine != hera ]; then
echo 'Syntax: link_fv3gfs.sh ( prod | dev ) ( wcoss_cray | wcoss_dell_p3 | hera )'
exit 1
fi

LINK="ln -fs"
SLINK="ln -fs"
[[ $RUN_ENVIR = nco ]] && LINK="cp -rp"
[[ $RUN_ENVIR = prod ]] && LINK="cp -rp"

pwd=$(pwd -P)

#------------------------------
#--model fix fields
#------------------------------
if [ $machine == "cray" ]; then
if [ $machine == "wcoss_cray" ]; then
FIX_DIR="/gpfs/hps3/emc/global/noscrub/emc.glopara/git/fv3gfs/fix"
elif [ $machine = "dell" ]; then
elif [ $machine = "wcoss_dell_p3" ]; then
FIX_DIR="/gpfs/dell2/emc/modeling/noscrub/emc.glopara/git/fv3gfs/fix"
elif [ $machine = "hera" ]; then
FIX_DIR="/scratch1/NCEPDEV/global/glopara/fix"
Expand Down Expand Up @@ -282,7 +282,7 @@ cd ${pwd}/../sorc || exit 8
#--choose static config.base for NCO installation
cd $pwd/../parm/config
[[ -s config.base ]] && rm -f config.base
if [ $RUN_ENVIR = nco ] ; then
if [ $RUN_ENVIR = prod ] ; then
cp -p config.base.nco.static config.base
else
cp -p config.base.emc.dyn config.base
Expand Down

0 comments on commit 30e56f2

Please sign in to comment.