Skip to content

Commit

Permalink
Fix for other machines (#37)
Browse files Browse the repository at this point in the history
* address CFP machine checks, jlogfile, compath

* address CFP machine checks on gldas_forcing.sh

* use ftn to replace mpifort on wcoss2

* addressed the requested changes from NCO

* fixed the issue for other than machines

Co-authored-by: Helin Wei <[email protected]>
Co-authored-by: Helin Wei <[email protected]>
  • Loading branch information
3 people committed Jan 27, 2022
1 parent 83f5187 commit df7a52f
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 39 deletions.
5 changes: 1 addition & 4 deletions modulefiles/gdas2gldas.hera
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ module load sp/2.3.3

module load netcdf/4.7.4
module load hdf5/1.10.6
module load esmf/8.1.1

export FCOMP=mpiifort
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"
module load esmf/8_1_1
5 changes: 1 addition & 4 deletions modulefiles/gdas2gldas.wcoss_dell_p3
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ module load sp/2.3.3

module load netcdf/4.7.4
module load hdf5/1.10.6
module load esmf/8.1.1

export FCOMP=mpif90
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"
module load esmf/8_2_0_beta_snapshot_14
5 changes: 1 addition & 4 deletions modulefiles/gldas2gdas.hera
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ module load sp/2.3.3

module load netcdf/4.7.4
module load hdf5/1.10.6
module load esmf/8.1.1

export FCOMP=mpiifort
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"
module load esmf/8_1_1
5 changes: 1 addition & 4 deletions modulefiles/gldas2gdas.wcoss_dell_p3
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ module load sp/2.3.3

module load netcdf/4.7.4
module load hdf5/1.10.6
module load esmf/8.1.1

export FCOMP=mpif90
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"
module load esmf/8_2_0_beta_snapshot_14
3 changes: 0 additions & 3 deletions modulefiles/gldas_forcing.hera
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ module load hpc-intel/18.0.5.274

module load w3nco/2.4.1
module load bacio/2.4.1

export FC=ifort
export FOPTS="-O0 -FR"
3 changes: 0 additions & 3 deletions modulefiles/gldas_forcing.wcoss_dell_p3
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ module load hpc-ips/18.0.1.163

module load w3nco/2.4.1
module load bacio/2.4.1

export FC=ifort
export FOPTS="-O0 -FR"
3 changes: 0 additions & 3 deletions modulefiles/gldas_post.hera
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ module load w3nco/2.4.1
module load w3emc/2.7.3
module load bacio/2.4.1
module load nemsio/2.5.2

export FC=ifort
export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian'
3 changes: 0 additions & 3 deletions modulefiles/gldas_post.wcoss_dell_p3
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ module load w3nco/2.4.1
module load w3emc/2.7.3
module load bacio/2.4.1
module load nemsio/2.5.2

export FC=ifort
export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian'
3 changes: 0 additions & 3 deletions modulefiles/gldas_rst.hera
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ module load w3nco/2.4.1
module load w3emc/2.7.3
module load bacio/2.4.1
module load nemsio/2.5.2

export FC=ifort
export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian'
3 changes: 0 additions & 3 deletions modulefiles/gldas_rst.wcoss_dell_p3
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ module load w3nco/2.4.1
module load w3emc/2.7.3
module load bacio/2.4.1
module load nemsio/2.5.2

export FC=ifort
export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian'
14 changes: 13 additions & 1 deletion sorc/build_gdas2gldas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
if [ $target = wcoss2 ]; then
module reset
else
module purge
fi
module use ../modulefiles
module load gdas2gldas.$target > /dev/null 2>&1
else
Expand All @@ -33,7 +37,15 @@ fi
#
cd gdas2gldas.fd

export FCOMP=ftn
if [ $target = wcoss2 ]; then
export FCOMP=ftn
elif [ $target = wcoss_cray ]; then
export FCOMP=ftn
elif [ $target = wcoss_dell_p3 ]; then
export FCOMP=mpif90
else
export FCOMP=mpiifort
fi
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"

make clean
Expand Down
14 changes: 13 additions & 1 deletion sorc/build_gldas2gdas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
if [ $target = wcoss2 ]; then
module reset
else
module purge
fi
module use ../modulefiles
module load gldas2gdas.$target > /dev/null 2>&1
else
Expand All @@ -33,7 +37,15 @@ fi
#
cd gldas2gdas.fd

export FCOMP=ftn
if [ $target = wcoss2 ]; then
export FCOMP=ftn
elif [ $target = wcoss_cray ]; then
export FCOMP=ftn
elif [ $target = wcoss_dell_p3 ]; then
export FCOMP=mpif90
else
export FCOMP=mpiifort
fi
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"

make clean
Expand Down
12 changes: 11 additions & 1 deletion sorc/build_gldas_forcing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
if [ $target = wcoss2 ]; then
module reset
else
module purge
fi
module use ../modulefiles
module load gldas_forcing.$target > /dev/null 2>&1
else
Expand All @@ -33,7 +37,13 @@ fi
#
cd gldas_forcing.fd

export FC=ftn
if [ $target = wcoss2 ]; then
export FC=ftn
elif [ $target = wcoss_cray ]; then
export FC=ftn
else
export FC=ifort
fi
export FOPTS="-O0 -FR"

make clean
Expand Down
4 changes: 4 additions & 0 deletions sorc/build_gldas_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
if [ $target = wcoss2 ]; then
module reset
else
module purge
fi
module use ../modulefiles
module load gldas_model.$target > /dev/null 2>&1
else
Expand Down
12 changes: 11 additions & 1 deletion sorc/build_gldas_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
if [ $target = wcoss2 ]; then
module reset
else
module purge
fi
module use ../modulefiles
module load gldas_post.$target > /dev/null 2>&1
else
Expand All @@ -30,7 +34,13 @@ fi

cd gldas_post.fd

export FC=ftn
if [ $target = wcoss2 ]; then
export FC=ftn
elif [ $target = wcoss_cray ]; then
export FC=ftn
else
export FC=ifort
fi
export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian'

make clean
Expand Down
12 changes: 11 additions & 1 deletion sorc/build_gldas_rst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ cwd=`pwd`
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"}
if [ $USE_PREINST_LIBS = true ]; then
export MOD_PATH
if [ $target = wcoss2 ]; then
module reset
else
module purge
fi
module use ../modulefiles
module load gldas_rst.$target > /dev/null 2>&1
else
Expand All @@ -30,7 +34,13 @@ fi

cd gldas_rst.fd/noah

export FC=ftn
if [ $target = wcoss2 ]; then
export FC=ftn
elif [ $target = wcoss_cray ]; then
export FC=ftn
else
export FC=ifort
fi
export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian'

make clean
Expand Down

0 comments on commit df7a52f

Please sign in to comment.