diff --git a/modulefiles/gdas2gldas.wcoss2 b/modulefiles/gdas2gldas.wcoss2 deleted file mode 100644 index d257dca..0000000 --- a/modulefiles/gdas2gldas.wcoss2 +++ /dev/null @@ -1,22 +0,0 @@ -#%Module##################################################### -## Build module for Dell -############################################################# -set ver v8.0.0 - -module load envvar/${envvar_ver:-1.0} -module load PrgEnv-intel/${PrgEnv_intel_ver:-8.1.0} -module load craype/${craype_ver:-2.7.10} -module load intel/${intel_ver:-19.1.3.304} -module load cray-mpich/${cray_mpich_ver:-8.1.9} - -module load w3nco/${w3nco_ver:-2.4.1} -module load nemsio/${nemsio_ver:-2.5.2} -module load bacio/${bacio_ver:-2.4.1} -module load sp/${sp_ver:-2.3.3} - -module load netcdf/${netcdf_ver:-4.7.4} -module load hdf5/${hdf5_ver:-1.10.6} -module load esmf/${esmf_ver:-8.0.1} - -export FCOMP=ftn -export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl" diff --git a/modulefiles/gdas2gldas.wcoss2.lua b/modulefiles/gdas2gldas.wcoss2.lua new file mode 100644 index 0000000..8595460 --- /dev/null +++ b/modulefiles/gdas2gldas.wcoss2.lua @@ -0,0 +1,33 @@ +help([[ +Load environment to run GLDAS on WCOSS2 +]]) + +envvar_ver=os.getenv("envvar_ver") or "1.0" +PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0" +craype_ver=os.getenv("craype_ver") or "2.7.8" +intel_ver=os.getenv("intel_ver") or "19.1.3.304" +cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9" +load(pathJoin("envvar", envvar_ver)) +load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) +load(pathJoin("craype", craype_ver)) +load(pathJoin("intel", intel_ver)) +load(pathJoin("cray-mpich", cray_mpich_ver)) + +w3nco_ver=os.getenv("w3nco_ver") or "2.4.1" +nemsio_ver=os.getenv("nemsio_ver") or "2.5.2" +bacio_ver=os.getenv("bacio_ver") or "2.4.1" +sp_ver=os.getenv("sp_ver") or "2.3.3" +load(pathJoin("w3nco", w3nco_ver)) +load(pathJoin("nemsio", nemsio_ver)) +load(pathJoin("bacio", bacio_ver)) +load(pathJoin("sp", sp_ver)) + +hdf5_ver=os.getenv("hdf5_ver") or "1.10.6" +netcdf_ver=os.getenv("netcdf_ver") or "4.7.4" +esmf_ver=os.getenv("esmf_ver") or "8.0.1" + +load(pathJoin("hdf5", hdf5_ver)) +load(pathJoin("netcdf", netcdf_ver)) +load(pathJoin("esmf", esmf_ver)) + +whatis("Description: GLDAS run environment") diff --git a/modulefiles/gldas2gdas.wcoss2 b/modulefiles/gldas2gdas.wcoss2 deleted file mode 100644 index d257dca..0000000 --- a/modulefiles/gldas2gdas.wcoss2 +++ /dev/null @@ -1,22 +0,0 @@ -#%Module##################################################### -## Build module for Dell -############################################################# -set ver v8.0.0 - -module load envvar/${envvar_ver:-1.0} -module load PrgEnv-intel/${PrgEnv_intel_ver:-8.1.0} -module load craype/${craype_ver:-2.7.10} -module load intel/${intel_ver:-19.1.3.304} -module load cray-mpich/${cray_mpich_ver:-8.1.9} - -module load w3nco/${w3nco_ver:-2.4.1} -module load nemsio/${nemsio_ver:-2.5.2} -module load bacio/${bacio_ver:-2.4.1} -module load sp/${sp_ver:-2.3.3} - -module load netcdf/${netcdf_ver:-4.7.4} -module load hdf5/${hdf5_ver:-1.10.6} -module load esmf/${esmf_ver:-8.0.1} - -export FCOMP=ftn -export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl" diff --git a/modulefiles/gldas2gdas.wcoss2.lua b/modulefiles/gldas2gdas.wcoss2.lua new file mode 100644 index 0000000..8595460 --- /dev/null +++ b/modulefiles/gldas2gdas.wcoss2.lua @@ -0,0 +1,33 @@ +help([[ +Load environment to run GLDAS on WCOSS2 +]]) + +envvar_ver=os.getenv("envvar_ver") or "1.0" +PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0" +craype_ver=os.getenv("craype_ver") or "2.7.8" +intel_ver=os.getenv("intel_ver") or "19.1.3.304" +cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9" +load(pathJoin("envvar", envvar_ver)) +load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) +load(pathJoin("craype", craype_ver)) +load(pathJoin("intel", intel_ver)) +load(pathJoin("cray-mpich", cray_mpich_ver)) + +w3nco_ver=os.getenv("w3nco_ver") or "2.4.1" +nemsio_ver=os.getenv("nemsio_ver") or "2.5.2" +bacio_ver=os.getenv("bacio_ver") or "2.4.1" +sp_ver=os.getenv("sp_ver") or "2.3.3" +load(pathJoin("w3nco", w3nco_ver)) +load(pathJoin("nemsio", nemsio_ver)) +load(pathJoin("bacio", bacio_ver)) +load(pathJoin("sp", sp_ver)) + +hdf5_ver=os.getenv("hdf5_ver") or "1.10.6" +netcdf_ver=os.getenv("netcdf_ver") or "4.7.4" +esmf_ver=os.getenv("esmf_ver") or "8.0.1" + +load(pathJoin("hdf5", hdf5_ver)) +load(pathJoin("netcdf", netcdf_ver)) +load(pathJoin("esmf", esmf_ver)) + +whatis("Description: GLDAS run environment") diff --git a/modulefiles/gldas_forcing.wcoss2 b/modulefiles/gldas_forcing.wcoss2 deleted file mode 100644 index 98d5576..0000000 --- a/modulefiles/gldas_forcing.wcoss2 +++ /dev/null @@ -1,16 +0,0 @@ -#%Module##################################################### -## Build module for Dell -############################################################# -set ver v8.0.0 - -module load envvar/${envvar_ver:-1.0} -module load PrgEnv-intel/${PrgEnv_intel_ver:-8.1.0} -module load craype/${craype_ver:-2.7.10} -module load intel/${intel_ver:-19.1.3.304} -module load cray-mpich/${cray_mpich_ver:-8.1.9} - -module load w3nco/${w3nco_ver:-2.4.1} -module load bacio/${bacio_ver:-2.4.1} - -export FC=ftn -export FOPTS="-O0 -FR" diff --git a/modulefiles/gldas_forcing.wcoss2.lua b/modulefiles/gldas_forcing.wcoss2.lua new file mode 100644 index 0000000..596f0d6 --- /dev/null +++ b/modulefiles/gldas_forcing.wcoss2.lua @@ -0,0 +1,21 @@ +help([[ +Load environment to run GLDAS on WCOSS2 +]]) + +envvar_ver=os.getenv("envvar_ver") or "1.0" +PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0" +craype_ver=os.getenv("craype_ver") or "2.7.8" +intel_ver=os.getenv("intel_ver") or "19.1.3.304" +cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9" +load(pathJoin("envvar", envvar_ver)) +load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) +load(pathJoin("craype", craype_ver)) +load(pathJoin("intel", intel_ver)) +load(pathJoin("cray-mpich", cray_mpich_ver)) + +w3nco_ver=os.getenv("w3nco_ver") or "2.4.1" +bacio_ver=os.getenv("bacio_ver") or "2.4.1" +load(pathJoin("w3nco", w3nco_ver)) +load(pathJoin("bacio", bacio_ver)) + +whatis("Description: GLDAS run environment") diff --git a/modulefiles/gldas_model.wcoss2 b/modulefiles/gldas_model.wcoss2 deleted file mode 100644 index 7664028..0000000 --- a/modulefiles/gldas_model.wcoss2 +++ /dev/null @@ -1,16 +0,0 @@ -#%Module##################################################### -## Build module for Dell -############################################################# -set ver v8.0.0 - -module load envvar/${envvar_ver:-1.0} -module load PrgEnv-intel/${PrgEnv_intel_ver:-8.1.0} -module load craype/${craype_ver:-2.7.10} -module load intel/${intel_ver:-19.1.3.304} -module load cray-mpich/${cray_mpich_ver:-8.1.9} - -module load w3emc/${w3emc_ver:-2.7.3} -module load w3nco/${w3nco_ver:-2.4.1} -module load bacio/${bacio_ver:-2.4.1} -module load sp/${sp_ver:-2.3.3} -module load ip/${ip_ver:-3.3.3} diff --git a/modulefiles/gldas_model.wcoss2.lua b/modulefiles/gldas_model.wcoss2.lua new file mode 100644 index 0000000..dd6b8fc --- /dev/null +++ b/modulefiles/gldas_model.wcoss2.lua @@ -0,0 +1,29 @@ +help([[ +Load environment to run GLDAS on WCOSS2 +]]) + +envvar_ver=os.getenv("envvar_ver") or "1.0" +PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0" +craype_ver=os.getenv("craype_ver") or "2.7.8" +intel_ver=os.getenv("intel_ver") or "19.1.3.304" +cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9" +load(pathJoin("envvar", envvar_ver)) +load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) +load(pathJoin("craype", craype_ver)) +load(pathJoin("intel", intel_ver)) +load(pathJoin("cray-mpich", cray_mpich_ver)) + +w3emc_ver=os.getenv("w3emc_ver") or "2.7.3" +w3nco_ver=os.getenv("w3nco_ver") or "2.4.1" +nemsio_ver=os.getenv("nemsio_ver") or "2.5.2" +bacio_ver=os.getenv("bacio_ver") or "2.4.1" +sp_ver=os.getenv("sp_ver") or "2.3.3" +ip_ver=os.getenv("ip_ver") or "3.3.3" +load(pathJoin("w3emc", w3emc_ver)) +load(pathJoin("w3nco", w3nco_ver)) +load(pathJoin("nemsio", nemsio_ver)) +load(pathJoin("bacio", bacio_ver)) +load(pathJoin("sp", sp_ver)) +load(pathJoin("ip", ip_ver)) + +whatis("Description: GLDAS run environment") diff --git a/modulefiles/gldas_post.wcoss2 b/modulefiles/gldas_post.wcoss2 deleted file mode 100644 index 28d9774..0000000 --- a/modulefiles/gldas_post.wcoss2 +++ /dev/null @@ -1,18 +0,0 @@ -#%Module##################################################### -## Build module for Dell -############################################################# -set ver v8.0.0 - -module load envvar/${envvar_ver:-1.0} -module load PrgEnv-intel/${PrgEnv_intel_ver:-8.1.0} -module load craype/${craype_ver:-2.7.10} -module load intel/${intel_ver:-19.1.3.304} -module load cray-mpich/${cray_mpich_ver:-8.1.9} - -module load w3nco/${w3nco_ver:-2.4.1} -module load w3emc/${w3emc_ver:-2.7.3} -module load bacio/${bacio_ver:-2.4.1} -module load nemsio/${nemsio_ver:-2.5.2} - -export FC=ftn -export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian' diff --git a/modulefiles/gldas_post.wcoss2.lua b/modulefiles/gldas_post.wcoss2.lua new file mode 100644 index 0000000..41118c3 --- /dev/null +++ b/modulefiles/gldas_post.wcoss2.lua @@ -0,0 +1,25 @@ +help([[ +Load environment to run GLDAS on WCOSS2 +]]) + +envvar_ver=os.getenv("envvar_ver") or "1.0" +PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0" +craype_ver=os.getenv("craype_ver") or "2.7.8" +intel_ver=os.getenv("intel_ver") or "19.1.3.304" +cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9" +load(pathJoin("envvar", envvar_ver)) +load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) +load(pathJoin("craype", craype_ver)) +load(pathJoin("intel", intel_ver)) +load(pathJoin("cray-mpich", cray_mpich_ver)) + +w3emc_ver=os.getenv("w3emc_ver") or "2.7.3" +w3nco_ver=os.getenv("w3nco_ver") or "2.4.1" +nemsio_ver=os.getenv("nemsio_ver") or "2.5.2" +bacio_ver=os.getenv("bacio_ver") or "2.4.1" +load(pathJoin("w3emc", w3emc_ver)) +load(pathJoin("w3nco", w3nco_ver)) +load(pathJoin("nemsio", nemsio_ver)) +load(pathJoin("bacio", bacio_ver)) + +whatis("Description: GLDAS run environment") diff --git a/modulefiles/gldas_rst.wcoss2 b/modulefiles/gldas_rst.wcoss2 deleted file mode 100644 index 28d9774..0000000 --- a/modulefiles/gldas_rst.wcoss2 +++ /dev/null @@ -1,18 +0,0 @@ -#%Module##################################################### -## Build module for Dell -############################################################# -set ver v8.0.0 - -module load envvar/${envvar_ver:-1.0} -module load PrgEnv-intel/${PrgEnv_intel_ver:-8.1.0} -module load craype/${craype_ver:-2.7.10} -module load intel/${intel_ver:-19.1.3.304} -module load cray-mpich/${cray_mpich_ver:-8.1.9} - -module load w3nco/${w3nco_ver:-2.4.1} -module load w3emc/${w3emc_ver:-2.7.3} -module load bacio/${bacio_ver:-2.4.1} -module load nemsio/${nemsio_ver:-2.5.2} - -export FC=ftn -export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian' diff --git a/modulefiles/gldas_rst.wcoss2.lua b/modulefiles/gldas_rst.wcoss2.lua new file mode 100644 index 0000000..41118c3 --- /dev/null +++ b/modulefiles/gldas_rst.wcoss2.lua @@ -0,0 +1,25 @@ +help([[ +Load environment to run GLDAS on WCOSS2 +]]) + +envvar_ver=os.getenv("envvar_ver") or "1.0" +PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0" +craype_ver=os.getenv("craype_ver") or "2.7.8" +intel_ver=os.getenv("intel_ver") or "19.1.3.304" +cray_mpich_ver=os.getenv("cray_mpich_ver") or "8.1.9" +load(pathJoin("envvar", envvar_ver)) +load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) +load(pathJoin("craype", craype_ver)) +load(pathJoin("intel", intel_ver)) +load(pathJoin("cray-mpich", cray_mpich_ver)) + +w3emc_ver=os.getenv("w3emc_ver") or "2.7.3" +w3nco_ver=os.getenv("w3nco_ver") or "2.4.1" +nemsio_ver=os.getenv("nemsio_ver") or "2.5.2" +bacio_ver=os.getenv("bacio_ver") or "2.4.1" +load(pathJoin("w3emc", w3emc_ver)) +load(pathJoin("w3nco", w3nco_ver)) +load(pathJoin("nemsio", nemsio_ver)) +load(pathJoin("bacio", bacio_ver)) + +whatis("Description: GLDAS run environment") diff --git a/sorc/build_gdas2gldas.sh b/sorc/build_gdas2gldas.sh index 510ac8d..083dc67 100755 --- a/sorc/build_gdas2gldas.sh +++ b/sorc/build_gdas2gldas.sh @@ -7,13 +7,19 @@ cwd=`pwd` USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"} if [ $USE_PREINST_LIBS = true ]; then export MOD_PATH - source ../modulefiles/gdas2gldas.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gdas2gldas.$target > /dev/null 2>&1 else export MOD_PATH=${cwd}/lib/modulefiles if [ $target = wcoss_cray ]; then - source ../modulefiles/gdas2gldas.${target}_userlib > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gdas2gldas.${target}_userlib > /dev/null 2>&1 else - source ../modulefiles/gdas2gldas.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gdas2gldas.$target > /dev/null 2>&1 fi fi @@ -27,6 +33,9 @@ fi # cd gdas2gldas.fd +export FCOMP=ftn +export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl" + make clean make make install diff --git a/sorc/build_gldas2gdas.sh b/sorc/build_gldas2gdas.sh index 20ccc8a..be6dffe 100755 --- a/sorc/build_gldas2gdas.sh +++ b/sorc/build_gldas2gdas.sh @@ -7,13 +7,19 @@ cwd=`pwd` USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"} if [ $USE_PREINST_LIBS = true ]; then export MOD_PATH - source ../modulefiles/gldas2gdas.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas2gdas.$target > /dev/null 2>&1 else export MOD_PATH=${cwd}/lib/modulefiles if [ $target = wcoss_cray ]; then - source ../modulefiles/gldas2gdas.${target}_userlib > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas2gdas.${target}_userlib > /dev/null 2>&1 else - source ../modulefiles/gldas2gdas.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas2gdas.$target > /dev/null 2>&1 fi fi @@ -27,6 +33,9 @@ fi # cd gldas2gdas.fd +export FCOMP=ftn +export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl" + make clean make make install diff --git a/sorc/build_gldas_forcing.sh b/sorc/build_gldas_forcing.sh index 2a7387c..89ce345 100755 --- a/sorc/build_gldas_forcing.sh +++ b/sorc/build_gldas_forcing.sh @@ -7,13 +7,19 @@ cwd=`pwd` USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"} if [ $USE_PREINST_LIBS = true ]; then export MOD_PATH - source ../modulefiles/gldas_forcing.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_forcing.$target > /dev/null 2>&1 else export MOD_PATH=${cwd}/lib/modulefiles if [ $target = wcoss_cray ]; then - source ../modulefiles/gldas_forcing.${target}_userlib > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_forcing.${target}_userlib > /dev/null 2>&1 else - source ../modulefiles/gldas_forcing.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_forcing.$target > /dev/null 2>&1 fi fi @@ -27,6 +33,9 @@ fi # cd gldas_forcing.fd +export FC=ftn +export FOPTS="-O0 -FR" + make clean make make install diff --git a/sorc/build_gldas_model.sh b/sorc/build_gldas_model.sh index 0c1cfcf..a39930e 100755 --- a/sorc/build_gldas_model.sh +++ b/sorc/build_gldas_model.sh @@ -7,13 +7,19 @@ cwd=`pwd` USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"} if [ $USE_PREINST_LIBS = true ]; then export MOD_PATH - source ../modulefiles/gldas_model.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_model.$target > /dev/null 2>&1 else export MOD_PATH=${cwd}/lib/modulefiles if [ $target = wcoss_cray ]; then - source ../modulefiles/gldas_model.${target}_userlib > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_model.${target}_userlib > /dev/null 2>&1 else - source ../modulefiles/gldas_model.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_model.$target > /dev/null 2>&1 fi fi diff --git a/sorc/build_gldas_post.sh b/sorc/build_gldas_post.sh index b185234..0ad31cc 100755 --- a/sorc/build_gldas_post.sh +++ b/sorc/build_gldas_post.sh @@ -7,13 +7,19 @@ cwd=`pwd` USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"} if [ $USE_PREINST_LIBS = true ]; then export MOD_PATH - source ../modulefiles/gldas_post.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_post.$target > /dev/null 2>&1 else export MOD_PATH=${cwd}/lib/modulefiles if [ $target = wcoss_cray ]; then - source ../modulefiles/gldas_post.${target}_userlib > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_post.${target}_userlib > /dev/null 2>&1 else - source ../modulefiles/gldas_post.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_post.$target > /dev/null 2>&1 fi fi @@ -24,6 +30,9 @@ fi cd gldas_post.fd +export FC=ftn +export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian' + make clean make make install diff --git a/sorc/build_gldas_rst.sh b/sorc/build_gldas_rst.sh index 88de25f..3203070 100755 --- a/sorc/build_gldas_rst.sh +++ b/sorc/build_gldas_rst.sh @@ -7,13 +7,19 @@ cwd=`pwd` USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"} if [ $USE_PREINST_LIBS = true ]; then export MOD_PATH - source ../modulefiles/gldas_rst.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_rst.$target > /dev/null 2>&1 else export MOD_PATH=${cwd}/lib/modulefiles if [ $target = wcoss_cray ]; then - source ../modulefiles/gldas_rst.${target}_userlib > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_rst.${target}_userlib > /dev/null 2>&1 else - source ../modulefiles/gldas_rst.$target > /dev/null 2>&1 + module purge + module use ../modulefiles + module load gldas_rst.$target > /dev/null 2>&1 fi fi @@ -24,6 +30,9 @@ fi cd gldas_rst.fd/noah +export FC=ftn +export FOPTS='-O -FR -I$(NEMSIO_INC) -convert big_endian' + make clean make make install