forked from jkhender/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GNU and Cheyenne Support to Automated RT (NOAA-EMC#444)
* Add capability for GNU and Add support for Cheyenne Co-authored-by: climbfuji <[email protected]>
- Loading branch information
1 parent
4fbebd7
commit 0b8a889
Showing
3 changed files
with
96 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,53 @@ | ||
#!/bin/bash --login | ||
set -eux | ||
if [ -f "accesstoken.sh" ]; then | ||
source ./accesstoken.sh | ||
if [ $(stat -L -c "%a" "accesstoken.sh") == "600" ]; then | ||
echo "Sourcing accesstoken.sh" | ||
source ./accesstoken.sh | ||
else | ||
echo "accesstoken.sh permissions NEED to be set to 600 before starting" | ||
exit 1 | ||
fi | ||
else | ||
echo "Please create accesstoken.sh (600) with the following content\n" | ||
echo "export ghapitoken=<GitHub API Token Here>" | ||
exit 1 | ||
fi | ||
|
||
export RT_COMPILER='intel' | ||
source ../detect_machine.sh | ||
echo "Machine ID: "+$MACHINE_ID | ||
if [[ $MACHINE_ID = hera.* ]]; then | ||
if [[ $HOSTNAME == hfe* ]]; then | ||
MACHINE_NAME=hera | ||
WORKDIR=/scratch1/NCEPDEV/nems/Brian.Curtis/test | ||
export PATH=/scratch1/NCEPDEV/nems/emc.nemspara/soft/miniconda3/bin:$PATH | ||
export PYTHONPATH=/scratch1/NCEPDEV/nems/emc.nemspara/soft/miniconda3/lib/python3.8/site-packages | ||
elif [[ $MACHINE_ID = orion.* ]]; then | ||
elif [[ $HOSTNAME == Orion-login-* ]]; then | ||
MACHINE_NAME=orion | ||
WORKDIR=/work/noaa/nems/bcurtis/test | ||
export PATH=/work/noaa/nems/emc.nemspara/soft/miniconda3/bin:$PATH | ||
export PYTHONPATH=/work/noaa/nems/emc.nemspara/soft/miniconda3/lib/python3.8/site-packages | ||
elif [[ $MACHINE_ID = jet.* ]]; then | ||
elif [[ $HOSTNAME == fe* ]]; then | ||
MACHINE_NAME=jet | ||
WORKDIR=/lfs4/HFIP/h-nems/Brian.Curtis/test | ||
export ACCNR="h-nems" | ||
export PATH=/lfs4/HFIP/hfv3gfs/software/miniconda3/4.8.3/envs/ufs-weather-model/bin:/lfs4/HFIP/hfv3gfs/software/miniconda3/4.8.3/bin:$PATH | ||
export PYTHONPATH=/lfs4/HFIP/hfv3gfs/software/miniconda3/4.8.3/envs/ufs-weather-model/lib/python3.8/site-packages:/lfs4/HFIP/hfv3gfs/software/miniconda3/4.8.3/lib/python3.8/site-packages | ||
elif [[ $MACHINE_ID = gaea.* ]]; then | ||
elif [[ $HOSTNAME == gaea* ]]; then | ||
MACHINE_NAME=gaea | ||
WORKDIR=/lustre/f2/pdata/ncep/Brian.Curtis/test | ||
export LOADEDMODULES=$LOADEDMODULES | ||
export ACCNR="nggps_emc" # This applies to Brian.Curtis, may need change later | ||
export PATH=/lustre/f2/pdata/esrl/gsd/contrib/miniconda3/4.8.3/envs/ufs-weather-model/bin:$PATH | ||
export PYTHONPATH=/lustre/f2/pdata/esrl/gsd/contrib/miniconda3/4.8.3/lib/python3.8/site-packages | ||
elif [[ $MACHINE_ID = cheyenne.* ]]; then | ||
#export PATH=/glade/p/ral/jntp/tools/ecFlow-5.3.1/bin:$PATH | ||
#export PYTHONPATH=/glade/p/ral/jntp/tools/ecFlow-5.3.1/lib/python2.7/site-packages | ||
echo "cheyenne not currently supported. automated RT not starting" | ||
exit 1 | ||
elif [[ $HOSTNAME == *.cheyenne.ucar.edu ]]; then | ||
MACHINE_NAME=cheyenne | ||
WORKDIR=/glade/work/heinzell/fv3/ufs-weather-model/auto-rt | ||
export ACCNR="P48503002" | ||
export PATH=/glade/p/ral/jntp/tools/miniconda3/4.8.3/envs/ufs-weather-model/bin:/glade/p/ral/jntp/tools/miniconda3/4.8.3/bin:$PATH | ||
export PYTHONPATH=/glade/p/ral/jntp/tools/miniconda3/4.8.3/envs/ufs-weather-model/lib/python3.8/site-packages:/glade/p/ral/jntp/tools/miniconda3/4.8.3/lib/python3.8/site-packages | ||
else | ||
echo "No Python Path for this machine. automated RT not starting" | ||
exit 1 | ||
fi | ||
|
||
python rt_auto.py -m $MACHINE_ID -w $WORKDIR | ||
python rt_auto.py -m $MACHINE_NAME -w $WORKDIR | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters