Skip to content

Commit

Permalink
Merge pull request ufs-community#22 from JulieSchramm/feature/chgres_…
Browse files Browse the repository at this point in the history
…grib2

Mods to build chgres_cube on cheyenne:
  • Loading branch information
JeffBeck-NOAA authored Nov 8, 2019
2 parents c29174e + e12971b commit e0bba30
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions modulefiles/chgres_cube.cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#%Module#####################################################
## Build module for Cheyenne
#############################################################
module load ncarenv/1.3
module load intel/19.0.2
module load ncarcompilers/0.5.0
module load impi/2019.2.187
module load netcdf/4.6.3

module use -a /glade/p/ral/jntp/GMTB/tools/modulefiles/intel-19.0.2/impi-2019.2.187

##
## use pre-compiled EMSF library for above compiler / MPI combination
##
module load esmf/8.0.0_bs50

NCEPLIB_PATH=/glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190703/intel-19.0.2/impi-2019.2.187/lib
NCEPINC_PATH=/glade/p/ral/jntp/GMTB/tools/NCEPlibs/20190703/intel-19.0.2/impi-2019.2.187/include

export NEMSIO_LIB="${NCEPLIB_PATH}/libnemsio_d.a"
export W3NCO_LIBd="${NCEPLIB_PATH}/libw3nco_d.a"
export BACIO_LIB4="${NCEPLIB_PATH}/libbacio_4.a"
export SP_LIBd="${NCEPLIB_PATH}/libsp_v2.0.2_d.a"
export SIGIO_LIB4="${NCEPLIB_PATH}/libsigio_v2.0.1_4.a"
export SFCIO_LIB4="${NCEPLIB_PATH}/libsfcio_v1.0.0_4.a"

export NEMSIO_INC="${NCEPINC_PATH}"
export SFCIO_INC4="${NCEPINC_PATH}"
export SIGIO_INC4="${NCEPINC_PATH}"

export FCOMP=mpiifort
#export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"
# for debugging
export FFLAGS="-O0 -g -traceback -r8 -i4 -qopenmp -convert big_endian -check bounds -warn unused -assume byterecl"

WGRIB2_PATH=/glade/u/apps/ch/opt/wgrib2/0.2.0.8/intel/18.0.5/lib

export WGRIB2API_LIB="${WGRIB2_PATH}/libwgrib2_api.a"
export WGRIB2API_INC="${WGRIB2_PATH}"
export WGRIB2_LIB="${WGRIB2_PATH}/libwgrib2.a"
4 changes: 2 additions & 2 deletions sorc/machine-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ elif [[ -d /dcom && -d /hwrf ]] ; then
target=wcoss
module purge
elif [[ -d /glade ]] ; then
# We are on NCAR Yellowstone
# We are on NCAR Cheyenne
if ( ! eval module help > /dev/null 2>&1 ) ; then
echo load the module command 1>&2
. /usr/share/Modules/init/$__ms_shell
fi
target=yellowstone
target=cheyenne
module purge
elif [[ -d /lustre && -d /ncrc ]] ; then
# We are on GAEA.
Expand Down

0 comments on commit e0bba30

Please sign in to comment.