Skip to content

Commit

Permalink
hotfix/gfsv16: Update ./link_fixdirs.sh for NCO
Browse files Browse the repository at this point in the history
option per Fanglin's guidance.

Issue #26.
  • Loading branch information
GeorgeGayno-NOAA committed Nov 3, 2020
1 parent a45f87e commit 160795e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sorc/link_fixdirs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi

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

pwd=$(pwd -P)

Expand All @@ -46,8 +46,14 @@ elif [ $machine = "jet" ]; then
elif [ $machine = "orion" ]; then
FIX_DIR="/work/noaa/global/glopara/fix_nco_gfsv16"
fi
[[ $RUN_ENVIR = nco ]] && FIX_DIR=../../../fix

cd ${pwd}/../fix ||exit 8
for dir in fix_am fix_fv3 fix_orog fix_fv3_gmted2010 fix_sfc_climo; do

FIX_LIST="fix_am fix_fv3 fix_orog fix_fv3_gmted2010 fix_sfc_climo"
[[ $RUN_ENVIR = nco ]] && FIX_LIST="fix_am fix_orog fix_fv3_gmted2010"

for dir in $FIX_LIST; do
if [ -d $dir ]; then
[[ $RUN_ENVIR = nco ]] && chmod -R 755 $dir
rm -rf $dir
Expand Down

3 comments on commit 160795e

@yangfanglin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@GeorgeGayno-NOAA
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@KateFriedman-NOAA Can you try this within the global workflow? Or however NCO is using it?

@KateFriedman-NOAA
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure...will clone the release/gfsv16.0.0 branch, change the UFS_UTILS checkout to use the hotfix/gfsv16 branch, and then run checkout, build, link scripts with NCO mode. Will report back.

Please sign in to comment.