forked from NCAR/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge develop into release/public-v1 (changes: PR NCAR#48 from George…
… Gayno, chgres_cube grib2 GFS data support); update submodule pointer for cmake
- Loading branch information
Showing
38 changed files
with
3,379 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule cmake
updated
5 files
+2 −2 | Modules/FindG2TMPL.cmake | |
+4 −4 | Modules/FindNetCDF.cmake | |
+14 −10 | Modules/FindSFCIO.cmake | |
+14 −10 | Modules/FindSIGIO.cmake | |
+20 −0 | Modules/FindWGRIB2.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
############################################################# | ||
## chgres_cube component - linux.gnu | ||
############################################################# | ||
|
||
export IP_INCd=${NCEPLIBS}/ip/include_d | ||
export NEMSIO_INC=${NCEPLIBS}/nemsio/include | ||
export SFCIO_INC4=${NCEPLIBS}/sfcio/include_4 | ||
export SIGIO_INC4=${NCEPLIBS}/sigio/include_4 | ||
|
||
export BACIO_LIB4=${NCEPLIBS}/bacio/lib/libbacio_v2.1.0_4.a | ||
export IP_LIBd=${NCEPLIBS}/ip/lib/libip_v3.0.0_d.a | ||
export NEMSIO_LIB=${NCEPLIBS}/nemsio/lib/libnemsio_v2.2.3.a | ||
export SFCIO_LIB4=${NCEPLIBS}/sfcio/lib/libsfcio_v1.1.0_4.a | ||
export SIGIO_LIB4=${NCEPLIBS}/sigio/lib/libsigio_v2.1.0_4.a | ||
export SP_LIBd=${NCEPLIBS}/sp/lib/libsp_v2.0.2_d.a | ||
export W3NCO_LIBd=${NCEPLIBS}/w3nco/lib/libw3nco_v2.0.6_d.a | ||
|
||
export WGRIB2API_INC=${WGRIB2_DIR}/include | ||
export WGRIB2_LIB=${WGRIB2_DIR}/lib/libwgrib2.a | ||
|
||
export FCOMP=mpif90 | ||
export FFLAGS="-O3 -g -fbacktrace -fdefault-real-8 -ffree-line-length-none -fopenmp -fconvert=big-endian" | ||
# for debugging | ||
#export FFLAGS="-O0 -g -fbacktrace -fdefault-real-8 -ffree-line-length-none -fopenmp -fconvert=big-endian" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
############################################################# | ||
## chgres_cube component - linux.intel | ||
############################################################# | ||
|
||
export IP_INCd=${NCEPLIBS}/ip/include_d | ||
export NEMSIO_INC=${NCEPLIBS}/nemsio/include | ||
export SFCIO_INC4=${NCEPLIBS}/sfcio/include_4 | ||
export SIGIO_INC4=${NCEPLIBS}/sigio/include_4 | ||
|
||
export BACIO_LIB4=${NCEPLIBS}/bacio/lib/libbacio_v2.1.0_4.a | ||
export IP_LIBd=${NCEPLIBS}/ip/lib/libip_v3.0.0_d.a | ||
export NEMSIO_LIB=${NCEPLIBS}/nemsio/lib/libnemsio_v2.2.3.a | ||
export SFCIO_LIB4=${NCEPLIBS}/sfcio/lib/libsfcio_v1.1.0_4.a | ||
export SIGIO_LIB4=${NCEPLIBS}/sigio/lib/libsigio_v2.1.0_4.a | ||
export SP_LIBd=${NCEPLIBS}/sp/lib/libsp_v2.0.2_d.a | ||
export W3NCO_LIBd=${NCEPLIBS}/w3nco/lib/libw3nco_v2.0.6_d.a | ||
|
||
export WGRIB2API_INC=${WGRIB2_DIR}/include | ||
export WGRIB2_LIB=${WGRIB2_DIR}/lib/libwgrib2.a | ||
|
||
export FCOMP=mpif90 | ||
export FFLAGS="-O3 -fp-model source -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#%Module##################################################### | ||
## chgres build module for Odin | ||
############################################################# | ||
|
||
module use /oldscratch/ywang/external/modulefiles | ||
module load esmf/8.0.0bs30 | ||
|
||
module load cray-netcdf-hdf5parallel | ||
module load cray-parallel-netcdf | ||
module load cray-hdf5-parallel | ||
module load w3nco/v2.0.6 | ||
module load nemsio/v2.2.2 | ||
module load bacio/v2.0.2 | ||
module load sp/v2.0.2 | ||
module load sfcio/v1.0.0 | ||
module load sigio/v2.0.1 | ||
|
||
|
||
export FCOMP=ftn | ||
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl" | ||
export WGRIB2API_LIB="/home/larissa.reames/tmp/wgrib2-2/grib2/lib/libwgrib2_api.a" | ||
export WGRIB2API_INC="/home/larissa.reames/tmp/wgrib2-2/grib2/lib" | ||
export WGRIB2_LIB="/home/larissa.reames/tmp/wgrib2-2/grib2/lib/libwgrib2.a" | ||
|
||
|
||
# for debugging | ||
#export FFLAGS="-O0 -g -traceback -r8 -i4 -qopenmp -convert big_endian -check bounds -warn unused -assume byterecl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
modulefiles/modulefile.global_emcsfc_ice_blend.wcoss_cray_userlib
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
modulefiles/modulefile.global_emcsfc_snow2mdl.wcoss_cray_userlib
100755 → 100644
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
dzdt dzdt set_to_fill 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 | ||
ice_wat ice_wat set_to_fill 0 T | ||
rainwat rainwat set_to_fill 0 T | ||
snowwat snowwat set_to_fill 0 T | ||
graupel graupel set_to_fill 0 T | ||
vtype vtype skip 0 S | ||
sotype stype skip 0 S | ||
vfrac vfrac skip 0 S | ||
fricv uustar set_to_fill 0 S | ||
sfcr zorl set_to_fill 0.01 S | ||
tprcp tprcp set_to_fill 0.00 S | ||
ffmm ffmm set_to_fill 0.00 S | ||
f10m f10m set_to_fill 0.00 S | ||
soilw smc stop 0 S | ||
soill slc set_to_fill 0.0 S | ||
soilt stc stop 0 S | ||
cnwat cnwat set_to_fill 0.0 S | ||
hice icetk set_to_fill 1.5 S | ||
weasd weasd set_to_fill 0.0 S | ||
snod snod set_to_fill 0.0 S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
####################################################### | ||
# Description of varmap_tables # | ||
####################################################### | ||
|
||
These files, each named for the phys_suite variable set in the chgres_cube namelist, | ||
control how chgres_cube, when processing grib2 files, handles variables that might | ||
be missing from the grib2 files. Since there are so many different version of grib2 | ||
files, it's often uncertain what fields are available even if you know what source | ||
model the data is coming from. Each file contains : | ||
|
||
Line 1: number of entries in the table | ||
Column 1: Name the code searches for in the table. Do not change. | ||
Column 2: Name the code will use to save the variable in the output file. Unimplemented. | ||
Comumn 3: Behavior when the code can't find the variable in the input file. Options are: | ||
"skip": Don't write to output file. | ||
"set_to_fill": Set to user-specified field value (see column 4). | ||
"stop": Force an exception and stop code execution. Use this if you absolutely | ||
require a field to be present. | ||
Column 4: If column 3 = "set_to_fill", then this value is used to fill in all points | ||
in the input field. These values may be over-written by the code before | ||
output depending on the variable (esp. for surface variables). Be careful | ||
with these values for surface variables. If you set this value too low | ||
(e.g., -100000), the code may run extremely slowly due to variable replacment | ||
at "missing" points. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#! /usr/bin/env bash | ||
set -eux | ||
|
||
target=${target:-"NULL"} | ||
|
||
if [[ $target == "linux.gnu" || $target == "linux.intel" ]]; then | ||
unset -f module | ||
else | ||
source ./machine-setup.sh > /dev/null 2>&1 | ||
fi | ||
|
||
cwd=`pwd` | ||
|
||
USE_PREINST_LIBS=${USE_PREINST_LIBS:-"true"} | ||
if [ $USE_PREINST_LIBS = true ]; then | ||
export MOD_PATH | ||
source ../modulefiles/chgres_cube.$target > /dev/null 2>&1 | ||
else | ||
export MOD_PATH=${cwd}/lib/modulefiles | ||
if [ $target = wcoss_cray ]; then | ||
source ../modulefiles/chgres_cube.${target}_userlib > /dev/null 2>&1 | ||
else | ||
source ../modulefiles/chgres_cube.$target > /dev/null 2>&1 | ||
fi | ||
fi | ||
|
||
# Check final exec folder exists | ||
if [ ! -d "../exec" ]; then | ||
mkdir ../exec | ||
fi | ||
|
||
# | ||
# --- Chgres part | ||
# | ||
cd chgres_cube.fd | ||
|
||
make clean | ||
make | ||
make install | ||
|
||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.