Skip to content

Commit

Permalink
Added build support on Odin and Stampede (NOAA-EMC#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywangwof authored Jun 26, 2020
1 parent fba5076 commit c3b6096
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 9 deletions.
7 changes: 5 additions & 2 deletions src/build_global_equiv_resol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ $# -eq 0 ]; then
echo "No 'platform' argument supplied"
echo "Using directory structure to determine machine settings"
platform=''
else
else
platform=$1
fi
#
Expand Down Expand Up @@ -74,6 +74,9 @@ elif [ $platform = "cheyenne" ]; then
elif [ $platform = "jet" ]; then
HDF5_DIR=$HDF5
NETCDF_DIR=$NETCDF
elif [ $platform = "stampede" ]; then
HDF5_DIR=$TACC_HDF5_DIR
NETCDF_DIR=$TACC_NETCDF_DIR
fi
#
# Create alias for "make".
Expand All @@ -92,7 +95,7 @@ echo "//////////////////////////////////////////////////////////////////////////
echo
set -x
#
# Copy all source code and the makefile to the temporary directory.
# Copy all source code and the makefile to the temporary directory.
# Then clean and build from scratch.
#
cp $srcDir/*.f90 $tmpDir
Expand Down
9 changes: 6 additions & 3 deletions src/build_mosaic_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ $# -eq 0 ]; then
echo "No 'platform' argument supplied"
echo "Using directory structure to determine machine settings"
platform=''
else
else
platform=$1
fi
#
Expand All @@ -28,7 +28,7 @@ exec_dir=`pwd`/../exec
mkdir -p ${exec_dir}
#
# Change directory to where the source code is located.
#
#
srcDir=`pwd`/../regional_workflow/sorc/${package_name}.fd/
cd ${srcDir}
#
Expand Down Expand Up @@ -74,6 +74,9 @@ elif [ $platform = "cheyenne" ]; then
elif [ $platform = "jet" ]; then
HDF5_DIR=$HDF5
NETCDF_DIR=$NETCDF
elif [ $platform = "stampede" ]; then
HDF5_DIR=$TACC_HDF5_DIR
NETCDF_DIR=$TACC_NETCDF_DIR
fi
#
# Create alias for "make".
Expand All @@ -92,7 +95,7 @@ echo "//////////////////////////////////////////////////////////////////////////
echo
set -x
#
# Copy all source code and the makefile to the temporary directory.
# Copy all source code and the makefile to the temporary directory.
# Then clean and build from scratch.
#
cp $srcDir/*.f90 $tmpDir
Expand Down
4 changes: 3 additions & 1 deletion src/build_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ EOT
elif [ "$target" = "gaea" ] ; then
echo "Not doing anything for 'gaea', if statement reserved for future use"
elif [ "$target" = "odin" ] ; then
echo "Not doing anything for 'odin', if statement reserved for future use"
./compile odin
elif [ "$target" = "stampede" ] ; then
./compile stampede
else
echo WARNING: UNKNOWN PLATFORM 1>&2
fi
9 changes: 6 additions & 3 deletions src/build_regional_grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ $# -eq 0 ]; then
echo "No 'platform' argument supplied"
echo "Using directory structure to determine machine settings"
platform=''
else
else
platform=$1
fi
#
Expand All @@ -28,7 +28,7 @@ exec_dir=`pwd`/../exec
mkdir -p ${exec_dir}
#
# Change directory to where the source code is located.
#
#
srcDir=`pwd`/../regional_workflow/sorc/${package_name}.fd/
cd ${srcDir}
#
Expand Down Expand Up @@ -74,6 +74,9 @@ elif [ $platform = "cheyenne" ]; then
elif [ $platform = "jet" ]; then
HDF5_DIR=$HDF5
NETCDF_DIR=$NETCDF
elif [ $platform = "stampede" ]; then
HDF5_DIR=$TACC_HDF5_DIR
NETCDF_DIR=$TACC_NETCDF_DIR
fi
#
# Create alias for "make".
Expand All @@ -92,7 +95,7 @@ echo "//////////////////////////////////////////////////////////////////////////
echo
set -x
#
# Copy all source code and the makefile to the temporary directory.
# Copy all source code and the makefile to the temporary directory.
# Then clean and build from scratch.
#
cp $srcDir/*.f90 $tmpDir
Expand Down
4 changes: 4 additions & 0 deletions src/link_fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ elif [ ${target} == "odin" ]; then

ln -sfn /scratch/ywang/fix/theia_fix/fix_am fix_am

elif [ ${target} == "stampede" ]; then

ln -sfn /work/00315/tg455890/stampede2/regional_fv3/fix_am fix_am

elif [ ${target} == "cheyenne" ]; then

ln -sfn /glade/p/ral/jntp/GMTB/FV3GFS_V1_RELEASE/fix/fix_am fix_am
Expand Down
5 changes: 5 additions & 0 deletions src/machine-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ if [ "$platform" = "no_platform_specified" ]; then
elif [[ "$(hostname)" =~ "odin" ]]; then
# We are on odin
platform=odin
elif [[ "$(hostname)" =~ "stampede" ]]; then
# We are on login?.stampede2.tacc.utexas.edu
platform=stampede
else
# We are on an unknown machine
echo WARNING: UNKNOWN PLATFORM 1>&2
Expand Down Expand Up @@ -148,6 +151,8 @@ elif [ "$target" = "gaea" ] ; then
module purge
elif [ "$target" = "odin" ] ; then
echo "Not doing anything for 'odin', if statement reserved for future use"
elif [[ "$target" =~ "stampede" ]] ; then
echo "Not doing anything for 'stampede', if statement reserved for future use"
else
echo WARNING: UNKNOWN PLATFORM 1>&2
fi
Expand Down

0 comments on commit c3b6096

Please sign in to comment.