From 9879441ebeba39f8c0674bbb5ed60e724fbbb43b Mon Sep 17 00:00:00 2001 From: Julie Schramm Date: Wed, 6 Nov 2019 11:07:58 -0700 Subject: [PATCH] Mods to build chgres_cube on cheyenne: - Fix merge conflict in chgres_cube.hera - Replace yellowstone with cheyenne in machine-setup.sh - Add module file chgres_cube.cheyenne --- modulefiles/chgres_cube.cheyenne | 40 ++++++++++++++++++++++++++++++++ modulefiles/chgres_cube.hera | 26 --------------------- sorc/machine-setup.sh | 4 ++-- 3 files changed, 42 insertions(+), 28 deletions(-) create mode 100644 modulefiles/chgres_cube.cheyenne diff --git a/modulefiles/chgres_cube.cheyenne b/modulefiles/chgres_cube.cheyenne new file mode 100644 index 000000000..a4006d681 --- /dev/null +++ b/modulefiles/chgres_cube.cheyenne @@ -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" diff --git a/modulefiles/chgres_cube.hera b/modulefiles/chgres_cube.hera index e02a7b7cb..4e46a10c3 100644 --- a/modulefiles/chgres_cube.hera +++ b/modulefiles/chgres_cube.hera @@ -4,7 +4,6 @@ module load intel/18.0.5.274 module load impi/2018.0.4 -<<<<<<< HEAD module load netcdf/4.6.1 module use /scratch1/NCEPDEV/nems/emc.nemspara/soft/modulefiles @@ -18,12 +17,6 @@ module load sp module load sfcio module load sigio -#module load w3nco/v2.0.6 -#module load bacio/v2.0.1 -#module load sp/v2.0.2 -#module load sfcio/v1.0.0 -#module load sigio/v2.0.1 - export FCOMP=mpiifort #export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl" # for debugging @@ -39,22 +32,3 @@ export FFLAGS="-O0 -g -traceback -r8 -i4 -qopenmp -convert big_endian -check bou export WGRIB2API_LIB="/apps/wgrib2/2.0.8/intel/18.0.3.222/lib/libwgrib2_api.a" export WGRIB2API_INC="/apps/wgrib2/2.0.8/intel/18.0.3.222/lib" export WGRIB2_LIB="/apps/wgrib2/2.0.8/intel/18.0.3.222/lib/libwgrib2.a" -======= - -module use -a $MOD_PATH -module load w3nco/2.0.6 -module load nemsio/2.2.3 -module load bacio/2.0.2 -module load sp/2.0.2 -module load sfcio/1.1.0 -module load sigio/2.1.0 - -export NCEPLIBS=/scratch1/NCEPDEV/global/gwv/l819/lib -module use -a $NCEPLIBS/modulefiles -module load esmflocal/8_0_48b.netcdf47 - -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" ->>>>>>> remotes/origin/develop diff --git a/sorc/machine-setup.sh b/sorc/machine-setup.sh index 77f5bbb3b..6a7a281f0 100644 --- a/sorc/machine-setup.sh +++ b/sorc/machine-setup.sh @@ -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.