Skip to content

Commit

Permalink
feature/coldstart
Browse files Browse the repository at this point in the history
Merge branch 'develop' into feature/coldstart

See #9
  • Loading branch information
GeorgeGayno-NOAA committed Oct 20, 2020
2 parents 5ecb21a + bf70549 commit 26ec5c9
Show file tree
Hide file tree
Showing 59 changed files with 2,861 additions and 312 deletions.
20 changes: 11 additions & 9 deletions build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@ set -eux

target=${target:-"NULL"}

if [[ "$target" == "linux.gnu" || "$target" == "linux.intel" ]]; then
export MOD_PATH

if [[ "$target" == "linux.*" || "$target" == "macosx.*" ]]; then
unset -f module
set +x
source ./modulefiles/build.$target > /dev/null 2>&1
set -x
else
set +x
source ./sorc/machine-setup.sh > /dev/null 2>&1
source ./sorc/machine-setup.sh
module use ./modulefiles
module load build.$target > /dev/null 2>&1
module list
set -x
fi

export MOD_PATH
set +x
source ./modulefiles/build.$target > /dev/null 2>&1
module list
set -x

# --- Build all programs.
#

Expand All @@ -26,7 +28,7 @@ cd ./build

CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=../ -DEMC_EXEC_DIR=ON"

if [[ "$target" != "wcoss_cray" ]]; then
if [[ "$target" != "wcoss_cray" && "$target" != "odin" ]]; then
CMAKE_FLAGS+=" -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc"
fi

Expand Down
3 changes: 2 additions & 1 deletion driver_scripts/driver_grid.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
#-----------------------------------------------------------------------

source ../sorc/machine-setup.sh > /dev/null 2>&1
source ../modulefiles/build.$target
module use ../modulefiles
module load build.$target
module list

#-----------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion driver_scripts/driver_grid.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
#-----------------------------------------------------------------------

source ../sorc/machine-setup.sh > /dev/null 2>&1
source ../modulefiles/build.$target
module use ../modulefiles
module load build.$target
module list

#-----------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion driver_scripts/driver_grid.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
set -x

source ../sorc/machine-setup.sh > /dev/null 2>&1
source ../modulefiles/build.$target
module use ../modulefiles
module load build.$target
module list

#-----------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion driver_scripts/driver_grid.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
set -x

source ../sorc/machine-setup.sh > /dev/null 2>&1
source ../modulefiles/build.$target
module use ../modulefiles
module load build.$target
module list

#-----------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion driver_scripts/driver_grid.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
set -x

source ../sorc/machine-setup.sh > /dev/null 2>&1
source ../modulefiles/build.$target
module use ../modulefiles
module load build.$target
module list

#-----------------------------------------------------------------------
Expand Down
30 changes: 30 additions & 0 deletions modulefiles/build.cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#%Module#####################################################
## Build and run module for Cheyenne
#############################################################

module purge
module load ncarenv/1.3
module load intel/19.1.1
module load mpt/2.19
module load ncarcompilers/0.5.0
module load cmake/3.16.4

module use -a /glade/p/ral/jntp/GMTB/tools/NCEPLIBS-ufs-v2.0.0/intel-19.1.1/mpt-2.19/modules

module load bacio/2.4.1
module load g2/3.4.1
module load ip/3.3.3
module load nemsio/2.5.2
module load sp/2.3.3
module load w3emc/2.7.3
module load w3nco/2.4.1
module load sigio/2.3.2

module load sfcio/1.4.1
module load gfsio/1.4.1
module load nemsiogfs/2.5.3
module load landsfcutil/2.4.1
module load wgrib2/2.0.8
module load netcdf/4.7.4

setenv ESMFMKFILE /glade/p/ral/jntp/GMTB/tools/NCEPLIBS-ufs-v2.0.0/intel-19.1.1/mpt-2.19/lib64/esmf.mk
13 changes: 5 additions & 8 deletions modulefiles/build.jet
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ module load szip/2.1
module load hdf5/1.10.5
module load netcdf/4.7.0

export CC=icc
export FC=ifort
export CXX=icpc
setenv CC icc
setenv FC ifort
setenv CXX icpc

export ESMFMKFILE=/lfs4/HFIP/hfv3gfs/software/NCEPLIBS-ufs-v2.0.0beta01/intel-18.0.5.274/impi-2018.4.274/lib64/esmf.mk
export Jasper_ROOT=/lfs4/HFIP/hfv3gfs/software/NCEPLIBS-ufs-v2.0.0beta01/intel-18.0.5.274/impi-2018.4.274
setenv ESMFMKFILE /lfs4/HFIP/hfv3gfs/software/NCEPLIBS-ufs-v2.0.0beta01/intel-18.0.5.274/impi-2018.4.274/lib64/esmf.mk
setenv Jasper_ROOT /lfs4/HFIP/hfv3gfs/software/NCEPLIBS-ufs-v2.0.0beta01/intel-18.0.5.274/impi-2018.4.274

module use /lfs4/HFIP/hfv3gfs/software/NCEPLIBS-ufs-v2.0.0beta01/intel-18.0.5.274/impi-2018.4.274/modules
module load w3nco/2.4.1
Expand All @@ -29,6 +29,3 @@ module load gfsio/1.4.1
module load landsfcutil/2.4.1
module load g2/3.4.1
module load wgrib2/2.0.8



41 changes: 41 additions & 0 deletions modulefiles/build.odin
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#%Module#####################################################
## Build and run module for Odin
#############################################################

module load craype/2.6.2
module load craype-ivybridge
module load PrgEnv-intel
module swap intel/19.0.5.281
module load cray-mpich/7.7.10
module load cray-libsci
module load cray-netcdf-hdf5parallel
module load cray-parallel-netcdf
module load cray-hdf5-parallel

setenv NETCDF /opt/cray/pe/netcdf-hdf5parallel/4.6.3.2/INTEL/19.0

#module use -a /oldscratch/ywang/external/modulefiles
#module use /oldscratch/ywang/external/NCEPLIBS_SRW/modules
module use /oldscratch/ywang/external/NCEPLIBS_SRWv2.0/modules
module load w3nco
module load w3emc
module load sp
module load ip
module load bacio
module load sigio
module load sfcio
module load nemsio
module load nemsiogfs
module load gfsio
module load landsfcutil
module load g2
module load wgrib2

#module load esmf/8.0.0
#setenv ESMFMKFILE /oldscratch/ywang/external/NCEPLIBS_SRW/lib64/esmf.mk
setenv ESMFMKFILE /oldscratch/ywang/external/NCEPLIBS_SRWv2.0/lib64/esmf.mk

setenv CMAKE_Fortran_COMPILER ftn
setenv CMAKE_C_COMPILER cc

#setenv WGRIB2_ROOT /oldscratch/ywang/external/NCEPLIBS_SRWv2.0/wgrib2-2.0.8
4 changes: 2 additions & 2 deletions modulefiles/build.orion
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#############################################################
#%Module#####################################################
## Build module for Orion
#############################################################

Expand All @@ -21,7 +21,7 @@ module load nemsiogfs/2.5.3
module load landsfcutil/2.4.1
module load wgrib2/2.0.8

export Jasper_ROOT="/apps/jasper-1.900.1"
setenv Jasper_ROOT /apps/jasper-1.900.1

module use -a /apps/contrib/NCEPLIBS/lib/modulefiles
module load netcdfp/4.7.4.release
Expand Down
41 changes: 41 additions & 0 deletions modulefiles/build.stampede
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#%Module#####################################################
## Build and run module for Stampede
#############################################################

module purge

module load libfabric/1.7.0
module load git/2.24.1
module load autotools/1.1
module load xalt/2.8
module load TACC

module load python3/3.7.0
module load intel/18.0.2
module load cmake/3.16.1
module load impi/18.0.2
module load pnetcdf/1.11.0
module load netcdf/4.6.2
module li

setenv NETCDF /opt/apps/intel18/netcdf/4.6.2/x86_64

#module use /work/00315/tg455890/stampede2/regional_fv3/ufs_testing/INSTALL/modules
module use /work/00315/tg455890/stampede2/regional_fv3/NCEPLIBS_SRWv2.0/modules
module load esmf/8.0.0

module load w3nco
module load w3emc
module load sp
module load ip
module load bacio
module load sigio
module load sfcio
module load nemsio
module load nemsiogfs
module load gfsio
module load landsfcutil
module load g2
module load wgrib2

#setenv ESMFMKFILE /work/00315/tg455890/stampede2/regional_fv3/NCEPLIBS_SRWv2.0/lib64/esmf.mk
13 changes: 6 additions & 7 deletions modulefiles/build.wcoss_cray
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ module load nemsiogfs/2.5.3
module load landsfcutil/2.4.1
module load wgrib2/2.0.8

export ZLIB_ROOT=/usrx/local/prod/zlib/1.2.7/intel/haswell
export PNG_ROOT=/usrx/local/prod//png/1.2.49/intel/haswell
export Jasper_ROOT=/usrx/local/prod/jasper/1.900.1/intel/haswell
setenv ZLIB_ROOT /usrx/local/prod/zlib/1.2.7/intel/haswell
setenv PNG_ROOT /usrx/local/prod/png/1.2.49/intel/haswell
setenv Jasper_ROOT /usrx/local/prod/jasper/1.900.1/intel/haswell

module use /gpfs/hps3/emc/nems/noscrub/emc.nemspara/soft/modulefiles
module load esmf/8.0.0
export ESMFMKFILE=/gpfs/hps3/emc/nems/noscrub/emc.nemspara/soft/esmf/8.0.0/lib/esmf.mk
export NETCDF=/opt/cray/netcdf/4.3.3.1/INTEL/14.0
#module load esmf/8.0.0
setenv ESMFMKFILE /gpfs/hps3/emc/nems/noscrub/emc.nemspara/soft/esmf/8.0.0/lib/esmf.mk
setenv NETCDF /opt/cray/netcdf/4.3.3.1/INTEL/14.0
module rm gcc
module load gcc/6.3.0

3 changes: 1 addition & 2 deletions modulefiles/build.wcoss_dell_p3
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ module load cmake/3.16.2
module load ips/18.0.1.163
module load impi/18.0.1


module load jasper/1.900.29
export Jasper_ROOT="/usrx/local/prod/packages/gnu/4.8.5/jasper/1.900.29"
setenv Jasper_ROOT /usrx/local/prod/packages/gnu/4.8.5/jasper/1.900.29

module use /usrx/local/nceplibs/dev/NCEPLIBS/modulefiles
module load netcdf_parallel/4.7.4
Expand Down
27 changes: 27 additions & 0 deletions parm/varmap_tables/GSDphys_var_map.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
dzdt dzdt set_to_fill 0 D
delta_p delp skip 0 D
sphum sphum set_to_fill 1E-7 T
liq_wat liq_wat set_to_fill 0 T
o3mr o3mr set_to_fill 1E-7 T
rainwat rainwat set_to_fill 0 T
ice_wat ice_wat set_to_fill 0 T
snowwat snowwat set_to_fill 0 T
graupel graupel set_to_fill 0 T
ice_nc ice_nc set_to_fill -1.0 T
rain_nc rain_nc set_to_fill -1.0 T
water_nc water_nc set_to_fill -1.0 T
liq_aero liq_aero set_to_fill 0 T
ice_aero ice_aero set_to_fill 0 T
sgs_tke sgs_tke set_to_fill 0 T
vtype vtype skip 0 S
sotype stype skip 0 S
vfrac vfrac skip 0 S
fricv uustar skip 0 S
sfcr zorl set_to_fill 0.01 S
soilw smc stop 0 S
soilt stc stop 0 S
cnwat cnwat set_to_fill 0.0 S
icetk icetk set_to_fill 265.0 S
weasd weasd set_to_fill 0.0 S
snod snod set_to_fill 0.0 S
tprcp tprcp set_to_fill 0.0 S
3 changes: 3 additions & 0 deletions reg_tests/chgres_cube/c96.regional.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ fi

cd $DATA

mv out.sfc.tile7.nc out.sfc.tile1.nc
mv out.atm.tile7.nc out.atm.tile1.nc

test_failed=0
for files in *.nc
do
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/chgres_cube/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export OUTDIR=/gpfs/hps3/stmp/$LOGNAME/chgres_reg_tests
Expand Down
4 changes: 3 additions & 1 deletion reg_tests/chgres_cube/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export OUTDIR=/gpfs/dell1/stmp/$LOGNAME/chgres_reg_tests
QUEUE="debug"
Expand Down
4 changes: 3 additions & 1 deletion reg_tests/chgres_cube/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export OUTDIR=/scratch2/NCEPDEV/stmp1/$LOGNAME/chgres_reg_tests
PROJECT_CODE="fv3-cpu"
Expand Down
4 changes: 3 additions & 1 deletion reg_tests/chgres_cube/driver.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export OUTDIR=/lfs4/HFIP/emcda/$LOGNAME/stmp/chgres_reg_tests
PROJECT_CODE="hfv3gfs"
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/chgres_cube/driver.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export OUTDIR=/work/noaa/stmp/$LOGNAME/chgres_reg_tests
Expand Down
3 changes: 2 additions & 1 deletion reg_tests/global_cycle/driver.cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#BSUB -extsched 'CRAYLINUX[]'

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export DATA=/gpfs/hps3/stmp/$LOGNAME/reg_tests.cycle
Expand Down
4 changes: 3 additions & 1 deletion reg_tests/global_cycle/driver.dell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export DATA=/gpfs/dell1/stmp/$LOGNAME/reg_tests.cycle

Expand Down
4 changes: 3 additions & 1 deletion reg_tests/global_cycle/driver.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
set -x

source ../../sorc/machine-setup.sh > /dev/null 2>&1
source ../../modulefiles/build.$target
module use ../../modulefiles
module load build.$target
module list

export DATA=/scratch2/NCEPDEV/stmp1/$LOGNAME/reg_tests.cycle

Expand Down
Loading

0 comments on commit 26ec5c9

Please sign in to comment.