Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added machine specific env stuff for Fram, Saga and Betzy. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ usage() {
echo ' (necessary for mapping grids with a single point).'
echo ' --machine (or -mach)'
echo ' Name of the machine you are running on. Currently supports cheyenne,'
echo ' geyser, caldera, and pronghorn. Note that this script will'
echo ' geyser, caldera, ronghorn, Fram, Saga and Betzy. Note that this script will'
echo ' determine the machine name automatically from the hostfile command.'
echo ' -d'
echo ' toggle debug-only'
Expand Down Expand Up @@ -230,6 +230,9 @@ if [ $MACH == "UNSET" ]; then
pronghorn* )
MACH="dav"
;;
login* )
MACH="nris"
;;
*)
echo "Can not determine machine name from hostname '$hostname'"
exit 1
Expand Down Expand Up @@ -341,6 +344,21 @@ case $MACH in
# need to load module to access ncatted
module load nco
;;
## Fram, Saga or Betzy
"nris" )
module purge
module load intel/2018a #intel/17.0.1
module load ESMF/7.1.0r-intel-2018a #esmf_libs/7.0.0
# MPIEXEC should be mpirun -np
if [ -z "$MPIEXEC" ]; then
if [ -z "$NCPUS" ]; then
NCPUS=1
fi
MPIEXEC="mpirun -np $NCPUS"
fi
# need to load module to access ncatted
module load NCO/4.7.2-intel-2018a # nco
;;
*)
echo "Machine $MACH NOT recognized"
exit
Expand Down