Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WCOSS2 module and build updates #444

Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7b50947
Add WCOSS2 block to module-setup.*.inc files
KateFriedman-NOAA Sep 15, 2021
21ab9a6
Add WCOSS2 block to machine-setup.sh
KateFriedman-NOAA Sep 15, 2021
e662f95
Create new WCOSS2 modulefiles for workflow codes
KateFriedman-NOAA Sep 15, 2021
cb8a0d2
Add WCOSS2 if-block to build_gfs_bufrsnd.sh for SIGIO
KateFriedman-NOAA Sep 16, 2021
7eee6de
Add WCOSS2 if-block to build_tropcy_NEMS.sh for SIGIO
KateFriedman-NOAA Sep 16, 2021
500bdde
Adjust gaussian_sfcanl Makefile CMD copy
KateFriedman-NOAA Sep 16, 2021
51ba61c
Add WCOSS2 to utility compile scripts
KateFriedman-NOAA Sep 16, 2021
4a36ef8
Update parallel hdf5 and netcdf module names
KateFriedman-NOAA Sep 16, 2021
19a0fb3
Add module_base for WCOSS2
KateFriedman-NOAA Sep 16, 2021
f9e6d03
Slight cleanup of FV3 build commands
KateFriedman-NOAA Sep 16, 2021
a3d3e4c
Add WCOSS2 to link script
KateFriedman-NOAA Sep 16, 2021
1b08a27
Update checkout script for component test versions
KateFriedman-NOAA Sep 16, 2021
b6f4f09
Removed HPSS module from module_base.wcoss2
KateFriedman-NOAA Sep 17, 2021
0e9541d
Remove load of envvar/1.0 module in module-setup
KateFriedman-NOAA Sep 17, 2021
ddba40d
Remove envvar/1.0 from module_base, add back to setup
KateFriedman-NOAA Sep 17, 2021
fffc861
Remove unnecessary OznMon/RadMon modulefiles
KateFriedman-NOAA Sep 17, 2021
09296cc
Remove Hera reference in util compile scripts
KateFriedman-NOAA Sep 17, 2021
f70de42
Add util_shared/1.4.0 module load to module_base.wcoss2
KateFriedman-NOAA Sep 20, 2021
283a359
Reorganize module load order in wcoss2 modulefiles
KateFriedman-NOAA Sep 20, 2021
3d75a93
Update gfs_util code build
KateFriedman-NOAA Sep 20, 2021
0e1f6d6
Update g2 library module to g2/3.4.5 for storm_reloc
KateFriedman-NOAA Sep 20, 2021
ff89dd2
Moved nco module down after netcdf module load
KateFriedman-NOAA Sep 20, 2021
441f67f
Module updates in module_base.wcoss2
KateFriedman-NOAA Sep 21, 2021
0faddb5
Add Hera back into gfs_util compile scripts
KateFriedman-NOAA Sep 21, 2021
e5e26cf
Remove commented out lines in checkout.sh
KateFriedman-NOAA Sep 21, 2021
d98e40d
Remove duplicate gldas entry in build config
KateFriedman-NOAA Sep 21, 2021
ea5357a
Add WCOSS2 to gfs_util build check in build_all
KateFriedman-NOAA Sep 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions modulefiles/OznMonBuild.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#%Module################################################
aerorahul marked this conversation as resolved.
Show resolved Hide resolved
# Modfule file for oznmon
########################################################
export ver=2.0.2
export FCOMP=ifort

export CF=$FCOMP
export FC=$FCOMP
export FFLAGS="-O3 -fp-model strict -convert big_endian -assume byterecl"

export D_FFLAGS="-O3 -fp-model strict -convert big_endian -assume byterecl -debug"

module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load w3nco/2.4.1
19 changes: 19 additions & 0 deletions modulefiles/RadMonBuild.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#%Module################################################
# Modfule file for radmon
########################################################
export ver=2.0.2
export FCOMP=ifort

export CF=$FCOMP
export FC=$FCOMP
export FFLAGS="-O3 -fp-model strict -D_REAL8_ -traceback -convert big_endian -assume byterecl"

export CHECK_LIBS="/gpfs/hps/nco/ops/nwprod/spa_util/check_libs.bash"
export D_FFLAGS="-O3 -fp-model strict -D_REAL8_ -traceback -convert big_endian -assume byterecl -debug"

module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load w3nco/2.4.1
19 changes: 19 additions & 0 deletions modulefiles/fv3gfs/enkf_chgres_recenter.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#%Module#####################################################
## enkf_chgres_recenter component - wcoss_dell_p3
#############################################################

module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load nemsio/2.5.2
module load bacio/2.4.1
module load w3nco/2.4.1
module load ip/3.3.3
module load sp/2.3.3

module load hdf5/1.10.6
module load netcdf/4.7.4

export FC=ifort
18 changes: 18 additions & 0 deletions modulefiles/fv3gfs/enkf_chgres_recenter_nc.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#%Module#####################################################
## enkf_chgres_recenter component - wcoss2
#############################################################

module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load bacio/2.4.1
module load w3nco/2.4.1
module load ip/3.3.3
module load sp/2.3.3

module load hdf5/1.10.6
module load netcdf/4.7.4

export FC=ifort
21 changes: 21 additions & 0 deletions modulefiles/fv3gfs/gaussian_sfcanl.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#%Module#####################################################
## gaussian_sfcanl component of fv3gfs - wcoss2
#############################################################

set ver v16.0.0

# Load Intel environment
module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load nemsio/2.5.2
module load w3nco/2.4.1
module load bacio/2.4.1
module load sp/2.3.3

module load hdf5/1.10.6
module load netcdf/4.7.4

export FCOMP=ifort
27 changes: 27 additions & 0 deletions modulefiles/gfs_bufr.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#%Module#####################################################
## bufrsnd
#############################################################

# Loading pe environment
module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

# Loding nceplibs modules
module load nemsio/2.5.2
module load bacio/2.4.1
module load w3nco/2.4.1
module load bufr/11.4.0
module load sigio/2.3.2

module load w3emc/2.7.3
module load hdf5/1.10.6
module load netcdf/4.7.4

module load gempak/7.14.0

export myFC=mpiifort
export myFCFLAGS="-O3 -convert big_endian -traceback -g -fp-model source -qopenmp"
export myCPP=/lib/cpp
export myCPPFLAGS="-P"
14 changes: 14 additions & 0 deletions modulefiles/gfs_fbwndgfs.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#%Module#####################################################
## Module file for fbwndgfs
#############################################################
#
module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load bacio/2.4.1
module load w3nco/2.4.1
module load w3emc/2.7.3
module load ip/3.3.3
module load sp/2.3.3
7 changes: 7 additions & 0 deletions modulefiles/module-setup.csh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ else if ( { test -L /usrx && sh -c "readlink /usrx 2> /dev/null | grep dell" } )
source /usrx/local/prod/lmod/lmod/init/$__ms_shell
endif
module purge
else if ( { test -d /lfs/h2 } ) then
# We are on NOAA Cactus or Dogwood
if ( ! { module help >& /dev/null } ) then
source /usr/share/lmod/lmod/init/$__ms_shell
fi
module purge
module load envvar/1.0
else if ( { test -d /glade } ) then
# We are on NCAR Yellowstone
if ( ! { module help >& /dev/null } ) then
Expand Down
8 changes: 8 additions & 0 deletions modulefiles/module-setup.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ elif [[ -L /usrx && "$( readlink /usrx 2> /dev/null )" =~ dell ]] ; then
source /usrx/local/prod/lmod/lmod/init/$__ms_shell
fi
module purge
elif [[ -d /lfs/h2 ]] ; then
# We are on NOAA Cactus or Dogwood
if ( ! eval module help > /dev/null 2>&1 ) ; then
echo load the module command 1>&2
source /usr/share/lmod/lmod/init/$__ms_shell
fi
module purge
module load envvar/1.0
elif [[ -d /glade ]] ; then
# We are on NCAR Yellowstone
if ( ! eval module help > /dev/null 2>&1 ) ; then
Expand Down
42 changes: 42 additions & 0 deletions modulefiles/module_base.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#%Module######################################################################
##

module load envvar/1.0
aerorahul marked this conversation as resolved.
Show resolved Hide resolved
module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7
module load cray-pals
aerorahul marked this conversation as resolved.
Show resolved Hide resolved

module load prod_util/2.0.8
module load prod_envir/2.0.4
module load grib_util/1.2.2

module load nco/4.7.9
module load cfp/2.0.4
setenv USE_CFP YES
#module load pm5

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

module load gempak/7.14.0
module load g2tmpl/1.9.1
#module load util_shared/1.3.0

# Load for WAFS
module load bufr_dump/2.0.0

# Load python
module load cray-python/3.8.5.1

# Load crtm
module load crtm/2.3.0

# Load for waveprep
#module load cdo/1.9.8

# UPP
module use /u/Wen.Meng/noscrub/ncep_post/LIBS/modulefiles/mpi/intel/19.1.3.304/cray-mpich/8.1.4
module load upp/8.0.11
18 changes: 18 additions & 0 deletions modulefiles/modulefile.fv3nc2nemsio.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#%Module#####################################################
## Module file for fv3nc2nemsio
#############################################################

module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load hdf5/1.10.6
module load netcdf/4.7.4

module load bacio/2.4.1
module load nemsio/2.5.2
module load w3nco/2.4.1

export FCMP="ifort"
export FFLAGS="-free -O3 -xHOST"
17 changes: 17 additions & 0 deletions modulefiles/modulefile.regrid_nemsio.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#%Module#####################################################
## Module file for regrid_nemsio
#############################################################
module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load hdf5/1.10.6
module load netcdf/4.7.4

module load bacio/2.4.1
module load w3nco/2.4.1
module load nemsio/2.5.2
module load sp/2.3.3

export FCMP=mpiifort
23 changes: 23 additions & 0 deletions modulefiles/modulefile.storm_reloc_v6.0.0.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#%Module#####################################################
## Module file for storm_reloc_v6.0.0
#############################################################

module load PrgEnv-intel/8.1.0
module load craype/2.7.8
module load intel/19.1.3.304
module load cray-mpich/8.1.7

module load w3emc/2.7.3
module load w3nco/2.4.1
module load bacio/2.4.1
module load sp/2.3.3
module load nemsio/2.5.2
module load nemsiogfs/2.5.3
module load sigio/2.3.2

module load jasper/2.0.25
module load libpng/1.6.37
module load zlib/1.2.11
module load g2/3.4.1

export FC=ifort
6 changes: 2 additions & 4 deletions sorc/build_fv3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ fi
if [ $target = hera ]; then target=hera.intel ; fi
if [ $target = orion ]; then target=orion.intel ; fi

cd fv3gfs.fd/
FV3=$( pwd -P )/FV3
cd tests/
./compile.sh "$FV3" "$target" "WW3=Y 32BIT=Y" 1
cd fv3gfs.fd/tests
./compile.sh $(pwd)/../FV3 $target "WW3=Y 32BIT=Y" 1
mv -f fv3_1.exe ../NEMS/exe/global_fv3gfs.x
5 changes: 5 additions & 0 deletions sorc/build_gfs_bufrsnd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ if [ ! -d "../exec" ]; then
mkdir ../exec
fi

if [ $target = "wcoss2" ]; then
export SIGIO_LIB4=$SIGIO_LIB
KateFriedman-NOAA marked this conversation as resolved.
Show resolved Hide resolved
export SIGIO_INC4=$SIGIO_INC
fi

if [ -f gfs_bufr.fd/getncdimlen ]; then
cp gfs_bufr.fd/getncdimlen ../exec
fi
Expand Down
5 changes: 5 additions & 0 deletions sorc/build_tropcy_NEMS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ else
fi

source ../modulefiles/modulefile.storm_reloc_v6.0.0.$target
if [ $target = "wcoss2" ]; then
SIGIO_LIB4=$SIGIO_LIB
KateFriedman-NOAA marked this conversation as resolved.
Show resolved Hide resolved
SIGIO_INC4=$SIGIO_INC
fi

export FC=mpiifort
export JASPER_LIB=${JASPER_LIB:-$JASPER_LIBRARY_DIRS/libjasper.a}

Expand Down
13 changes: 8 additions & 5 deletions sorc/checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ echo $topdir
echo fv3gfs checkout ...
if [[ ! -d fv3gfs.fd ]] ; then
rm -f ${topdir}/checkout-fv3gfs.log
git clone https://github.com/ufs-community/ufs-weather-model fv3gfs.fd >> ${topdir}/checkout-fv3gfs.log 2>&1
#git clone https://github.com/ufs-community/ufs-weather-model fv3gfs.fd >> ${topdir}/checkout-fv3gfs.log 2>&1
KateFriedman-NOAA marked this conversation as resolved.
Show resolved Hide resolved
git clone --recursive --branch gfs_v16.0.16_on_cactus_dogwood https://github.com/DusanJovic-NOAA/ufs-weather-model fv3gfs.fd >> ${topdir}/checkout-fv3gfs.log 2>&1
cd fv3gfs.fd
git checkout GFS.v16.0.16
#git checkout GFS.v16.0.16
git submodule update --init --recursive
cd ${topdir}
else
Expand All @@ -50,7 +51,7 @@ if [[ ! -d gldas.fd ]] ; then
rm -f ${topdir}/checkout-gldas.log
git clone https://github.com/NOAA-EMC/GLDAS gldas.fd >> ${topdir}/checkout-gldas.fd.log 2>&1
cd gldas.fd
git checkout gldas_gfsv16_release.v1.13.0
git checkout gldas_gfsv16_release.v1.16.0
cd ${topdir}
else
echo 'Skip. Directory gldas.fd already exists.'
Expand All @@ -70,9 +71,11 @@ fi
echo EMC_post checkout ...
if [[ ! -d gfs_post.fd ]] ; then
rm -f ${topdir}/checkout-gfs_post.log
git clone https://github.com/NOAA-EMC/EMC_post.git gfs_post.fd >> ${topdir}/checkout-gfs_post.log 2>&1
#git clone https://github.com/NOAA-EMC/EMC_post.git gfs_post.fd >> ${topdir}/checkout-gfs_post.log 2>&1
git clone https://github.com/WenMeng-NOAA/UPP.git gfs_post.fd >> ${topdir}/checkout-gfs_post.log 2>&1
cd gfs_post.fd
git checkout upp_gfsv16_release.v1.1.4
#git checkout upp_gfsv16_release.v1.1.4
git checkout post_gfsv16_wcoss2
################################################################################
# checkout_gtg
## yes: The gtg code at NCAR private repository is available for ops. GFS only.
Expand Down
2 changes: 1 addition & 1 deletion sorc/gaussian_sfcanl.fd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gaussian_sfcanl.o: gaussian_sfcanl.f90
$(FCOMP) $(FFLAGS) -I$(NEMSIO_INC) $(NETCDF_INCLUDE) -c gaussian_sfcanl.f90

install:
cp ${CMD} ../../exec
cp ${CMD} ../../exec/${CMD}

clean:
rm -f *.o *.mod ${CMD} ../../exec/${CMD}
Expand Down
10 changes: 6 additions & 4 deletions sorc/link_fv3gfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ machine=${2}

if [ $# -lt 2 ]; then
echo '***ERROR*** must specify two arguements: (1) RUN_ENVIR, (2) machine'
echo ' Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | hera | orion )'
echo ' Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | wcoss2 | hera | orion )'
exit 1
fi

if [ $RUN_ENVIR != emc -a $RUN_ENVIR != nco ]; then
echo 'Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | hera | orion )'
echo 'Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | wcoss2 | hera | orion )'
exit 1
fi
if [ $machine != cray -a $machine != dell -a $machine != hera -a $machine != orion ]; then
echo 'Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | hera | orion)'
if [ $machine != cray -a $machine != dell -a $machine != wcoss2 -a $machine != hera -a $machine != orion ]; then
echo 'Syntax: link_fv3gfs.sh ( nco | emc ) ( cray | dell | wcoss2 | hera | orion)'
exit 1
fi

Expand All @@ -34,6 +34,8 @@ if [ $machine == "cray" ]; then
FIX_DIR="/gpfs/hps3/emc/global/noscrub/emc.glopara/git/fv3gfs/fix_nco_gfsv16"
elif [ $machine = "dell" ]; then
FIX_DIR="/gpfs/dell2/emc/modeling/noscrub/emc.glopara/git/fv3gfs/fix_nco_gfsv16"
elif [ $machine = "wcoss2" ]; then
FIX_DIR="/lfs/h2/emc/eib/noscrub/Kate.Friedman/glopara/fix_nco_gfsv16"
elif [ $machine = "hera" ]; then
FIX_DIR="/scratch1/NCEPDEV/global/glopara/fix_nco_gfsv16"
elif [ $machine = "orion" ]; then
Expand Down
Loading