Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…r-model into feature/split_gfs_typedefs_rename_ccpp_interstitial
  • Loading branch information
climbfuji committed Apr 11, 2022
2 parents 29f7d46 + c2e6b22 commit dc814db
Show file tree
Hide file tree
Showing 47 changed files with 6,213 additions and 5,370 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ set(DEBUG OFF CACHE BOOL "Enable DEBUG mode")
set(DEBUG_LINKMPI ON CACHE BOOL "Enable linkmpi option when DEBUG mode is on")
set(INLINE_POST OFF CACHE BOOL "Enable inline post")
set(MULTI_GASES OFF CACHE BOOL "Enable MULTI_GASES")
set(MOVING_NEST OFF CACHE BOOL "Enable moving nest code")
set(OPENMP ON CACHE BOOL "Enable OpenMP threading")
set(PARALLEL_NETCDF OFF CACHE BOOL "Enable parallel NetCDF")
set(REPRO OFF CACHE BOOL "Enable REPRO mode")
Expand All @@ -86,6 +87,7 @@ message("DEBUG ............ ${DEBUG}")
message("DEBUG_LINKMPI .... ${DEBUG_LINKMPI}")
message("INLINE_POST ...... ${INLINE_POST}")
message("MULTI_GASES ...... ${MULTI_GASES}")
message("MOVING_NEST ...... ${MOVING_NEST}")
message("OPENMP ........... ${OPENMP}")
message("PARALLEL_NETCDF .. ${PARALLEL_NETCDF}")
message("REPRO ............ ${REPRO}")
Expand Down
330 changes: 165 additions & 165 deletions tests/RegressionTests_cheyenne.gnu.log

Large diffs are not rendered by default.

1,431 changes: 746 additions & 685 deletions tests/RegressionTests_cheyenne.intel.log

Large diffs are not rendered by default.

1,429 changes: 745 additions & 684 deletions tests/RegressionTests_gaea.intel.log

Large diffs are not rendered by default.

336 changes: 168 additions & 168 deletions tests/RegressionTests_hera.gnu.log

Large diffs are not rendered by default.

1,465 changes: 763 additions & 702 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

1,241 changes: 614 additions & 627 deletions tests/RegressionTests_jet.intel.log

Large diffs are not rendered by default.

1,439 changes: 750 additions & 689 deletions tests/RegressionTests_orion.intel.log

Large diffs are not rendered by default.

1,139 changes: 546 additions & 593 deletions tests/RegressionTests_wcoss_cray.log

Large diffs are not rendered by default.

1,549 changes: 785 additions & 764 deletions tests/RegressionTests_wcoss_dell_p3.log

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,13 @@ export JNPES=$JNPES_dflt
export TASKS=$TASKS_dflt
export TPN=$TPN_dflt

export IS_MOVING_NEST=".false."
export VORTEX_TRACKER=0
export NTRACK=0
export MOVE_CD_X=0
export MOVE_CD_Y=0
export CPL_IMP_MRG=.true.

export OUTPUT_GRID=''
export IMO=''
export JMO=''
Expand Down
19 changes: 16 additions & 3 deletions tests/fv3_conf/hafs_fv3_run.IN
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ if [ ${CNTL_DIR} = "hafs_regional_atm" ] || \
[ ${CNTL_DIR} = "hafs_regional_docn" ] || \
[ ${CNTL_DIR} = "hafs_regional_docn_oisst" ]; then
cp -r @[INPUTDATA_ROOT]/FV3_hafs_input_data/INPUT_hafs_regional_atm/* ./INPUT/
elif [ ${CNTL_DIR} = "hafs_regional_storm_following_1nest_atm" ] || \
[ ${CNTL_DIR} = "hafs_regional_specified_moving_1nest_atm" ] || \
[ ${CNTL_DIR} = "hafs_regional_storm_following_1nest_atm_ocn" ] || \
[ ${CNTL_DIR} = "hafs_regional_storm_following_1nest_atm_ocn_wav" ]; then
cp -r @[INPUTDATA_ROOT]/FV3_hafs_input_data/INPUT_hafs_regional_storm_following_1nest_atm/* ./INPUT/
elif [ ${CNTL_DIR} = "hafs_regional_1nest_atm" ] || \
[ ${CNTL_DIR} = "hafs_regional_telescopic_2nests_atm" ] || \
[ ${CNTL_DIR} = "hafs_global_1nest_atm" ] || \
[ ${CNTL_DIR} = "hafs_global_multiple_4nests_atm" ]; then
[ ${CNTL_DIR} = "hafs_regional_telescopic_2nests_atm" ] || \
[ ${CNTL_DIR} = "hafs_global_1nest_atm" ] || \
[ ${CNTL_DIR} = "hafs_global_multiple_4nests_atm" ] || \
[ ${CNTL_DIR} = "hafs_global_storm_following_1nest_atm" ]; then
cp -r @[INPUTDATA_ROOT]/FV3_hafs_input_data/INPUT_${CNTL_DIR}/* ./INPUT/
else
echo "Error: unsupported experiments ${CNTL_DIR}"
Expand All @@ -28,3 +34,10 @@ if [ ${CNTL_DIR} = "hafs_regional_atm_thompson_gfdlsf" ]; then
cp @[INPUTDATA_ROOT]/FV3_input_data_gsd/freezeH2O.dat .
cp @[INPUTDATA_ROOT]/FV3_input_data_gsd/CCN_ACTIVATE.BIN .
fi

if [[ $POSTAPP = 'hafs' ]]; then
cp ${PATHRT}/parm/post_itag_hafs itag
cp ${PATHRT}/parm/postxconfig-NT-hafs.txt postxconfig-NT.txt
cp ${PATHRT}/parm/postxconfig-NT-hafs.txt postxconfig-NT_FH00.txt
cp ${PATHRT}/parm/params_grib2_tbl_new params_grib2_tbl_new
fi
9 changes: 7 additions & 2 deletions tests/fv3_conf/hafs_ww3_run.IN
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@

if [ ${CNTL_DIR} = "hafs_regional_atm_wav" ] || \
[ ${CNTL_DIR} = "hafs_regional_atm_ocn_wav" ]; then
[ ${CNTL_DIR} = "hafs_regional_atm_ocn_wav" ] || \
[ ${CNTL_DIR} = "hafs_regional_storm_following_1nest_atm_ocn_wav" ]; then
cp @[INPUTDATA_ROOT_WW3]/mod_def.natl_6m ./mod_def.ww3
cp @[INPUTDATA_ROOT_WW3]/mod_def.points ./mod_def.points
cp @[INPUTDATA_ROOT_WW3]/wind.natl_6m ./wind.ww3
if [ ${CNTL_DIR} = "hafs_regional_storm_following_1nest_atm_ocn_wav" ]; then
cp @[INPUTDATA_ROOT]/FV3_hafs_input_data/WW3_hafs_regional_input_data/wind.natl_6m_2020082512 ./wind.ww3
else
cp @[INPUTDATA_ROOT_WW3]/wind.natl_6m ./wind.ww3
fi
# Currently, provide a non-existing symbolic link for nest.ww3
ln -sf @[INPUTDATA_ROOT_WW3]/nest.ww3 ./
else
Expand Down
7 changes: 6 additions & 1 deletion tests/fv3_conf/hycom_hat10_run.IN
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@

rsync -arv @[INPUTDATA_ROOT]/HYCOM_regional_input_data/. ./
if [ ${CNTL_DIR} = "hafs_regional_storm_following_1nest_atm_ocn" ] || \
[ ${CNTL_DIR} = "hafs_regional_storm_following_1nest_atm_ocn_wav" ]; then
rsync -arv @[INPUTDATA_ROOT]/FV3_hafs_input_data/HYCOM_hafs_regional_input_data/. ./
else
rsync -arv @[INPUTDATA_ROOT]/HYCOM_regional_input_data/. ./
fi
5 changes: 0 additions & 5 deletions tests/fv3_conf/regional_run.IN
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ if [[ $POSTAPP = 'lam' ]]; then
cp ${PATHRT}/parm/postxconfig-NT-fv3lam.txt postxconfig-NT.txt
cp ${PATHRT}/parm/postxconfig-NT-fv3lam.txt postxconfig-NT_FH00.txt
cp ${PATHRT}/parm/params_grib2_tbl_new params_grib2_tbl_new
elif [[ $POSTAPP = 'hafs' ]]; then
cp ${PATHRT}/parm/post_itag_hafs itag
cp ${PATHRT}/parm/postxconfig-NT-hafs.txt postxconfig-NT.txt
cp ${PATHRT}/parm/postxconfig-NT-hafs.txt postxconfig-NT_FH00.txt
cp ${PATHRT}/parm/params_grib2_tbl_new params_grib2_tbl_new
fi

if [ $DO_RRTMGP = .true. ]; then
Expand Down
5 changes: 0 additions & 5 deletions tests/fv3_conf/regional_run_stoch.IN
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ if [[ $POSTAPP = 'lam' ]]; then
cp ${PATHRT}/parm/postxconfig-NT-fv3lam.txt postxconfig-NT.txt
cp ${PATHRT}/parm/postxconfig-NT-fv3lam.txt postxconfig-NT_FH00.txt
cp ${PATHRT}/parm/params_grib2_tbl_new params_grib2_tbl_new
elif [[ $POSTAPP = 'hafs' ]]; then
cp ${PATHRT}/parm/post_itag_hafs itag
cp ${PATHRT}/parm/postxconfig-NT-hafs.txt postxconfig-NT.txt
cp ${PATHRT}/parm/postxconfig-NT-hafs.txt postxconfig-NT_FH00.txt
cp ${PATHRT}/parm/params_grib2_tbl_new params_grib2_tbl_new
fi

if [ $DO_RRTMGP = .true. ]; then
Expand Down
55 changes: 48 additions & 7 deletions tests/parm/diag_table/diag_table_hafs_template
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ ufs.hafs
@[SYEAR] @[SMONTH] @[SDAY] @[SHOUR] 0 0

#output files
"grid_spec", -1, "months", 1, "days", "time"
"grid_spec", -1, "months", 1, "days", "time"
#"atmos_4xdaily", 1, "hours", 1, "days", "time"
"atmos_static", -1, "hours", 1, "hours", "time"
"fv3_history", 0, "hours", 1, "hours", "time"
"fv3_history2d", 0, "hours", 1, "hours", "time"
"atmos_static", -1, "hours", 1, "hours", "time"
"grid_mspec%4yr%2mo%2dy%2hr", 3, "hours", 1, "hours", "time", 3, "hours"
"atmos_diag%4yr%2mo%2dy%2hr", 3, "hours", 1, "hours", "time", 3, "hours"
"fv3_history", 0, "hours", 1, "hours", "time"
"fv3_history2d", 0, "hours", 1, "hours", "time"
#"ref3D", 0, "hours", 1, "hours", "time"
#"maxmin2D", 1, "hours", 1, "hours", "time"

Expand All @@ -17,11 +19,21 @@ ufs.hafs
###
# grid_spec
###
"dynamics", "grid_lon", "grid_lon", "grid_spec", "all", .false., "none", 2,
"dynamics", "grid_lat", "grid_lat", "grid_spec", "all", .false., "none", 2,
"dynamics", "grid_lon", "grid_lon", "grid_spec", "all", .false., "none", 2,
"dynamics", "grid_lat", "grid_lat", "grid_spec", "all", .false., "none", 2,
"dynamics", "grid_lont", "grid_lont", "grid_spec", "all", .false., "none", 2,
"dynamics", "grid_latt", "grid_latt", "grid_spec", "all", .false., "none", 2,
"dynamics", "area", "area", "grid_spec", "all", .false., "none", 2,
"dynamics", "area", "area", "grid_spec", "all", .false., "none", 2,
###
# grid_mspec
###
"dynamics", "grid_mlon", "grid_lon", "grid_mspec%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
"dynamics", "grid_mlat", "grid_lat", "grid_mspec%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
"dynamics", "grid_mlont", "grid_lont", "grid_mspec%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
"dynamics", "grid_mlatt", "grid_latt", "grid_mspec%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
"dynamics", "marea", "area", "grid_mspec%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
#"dynamics", "mdx", "dx", "grid_mspec%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
#"dynamics", "mdy", "dy", "grid_mspec%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
###
# 4x daily output
###
Expand Down Expand Up @@ -107,6 +119,35 @@ ufs.hafs
"dynamics", "hybm", "hybm", "atmos_static", "all", .false., "none", 2
"dynamics", "zsurf", "zsurf", "atmos_static", "all", .false., "none", 2
###
# GFDL tracker needed variables
###
#"dynamics", "grid_lon", "grid_lon", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
#"dynamics", "grid_lat", "grid_lat", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
"dynamics", "grid_mlon", "grid_lon", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
"dynamics", "grid_mlat", "grid_lat", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2,
"dynamics", "vort850", "vort850", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "vort700", "vort700", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "us", "us", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "u850", "u850", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "u700", "u700", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "u500", "u500", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "vs", "vs", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "v850", "v850", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "v700", "v700", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "v500", "v500", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "t850", "t850", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "t500", "t500", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "t300", "t300", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "slp", "slp", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "z850", "z850", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "z700", "z700", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "z500", "z500", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "z200", "z200", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "rh850", "rh850", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
"dynamics", "rh500", "rh500", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
#"gfs_phys", "u10m", "u10m", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
#"gfs_phys", "v10m", "v10m", "atmos_diag%4yr%2mo%2dy%2hr", "all", .false., "none", 2
###
# FV3 variabls needed for NGGPS evaluation
###
"gfs_dyn", "ucomp", "ugrd", "fv3_history", "all", .false., "none", 2
Expand Down
9 changes: 9 additions & 0 deletions tests/parm/input_global_hafs.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
nest_joffsets= @[NEST_JOFFSETS]
/

&fv_moving_nest_nml
surface_dir = "INPUT/moving_nest"
is_moving_nest = @[IS_MOVING_NEST]
vortex_tracker = @[VORTEX_TRACKER]
ntrack = @[NTRACK]
move_cd_x = @[MOVE_CD_X]
move_cd_y = @[MOVE_CD_Y]
/

&surf_map_nml
zero_ocean = .false.
cd4 = 0.15
Expand Down
9 changes: 9 additions & 0 deletions tests/parm/input_regional_hafs.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@
nest_joffsets= @[NEST_JOFFSETS]
/

&fv_moving_nest_nml
surface_dir = "INPUT/moving_nest"
is_moving_nest = @[IS_MOVING_NEST]
vortex_tracker = @[VORTEX_TRACKER]
ntrack = @[NTRACK]
move_cd_x = @[MOVE_CD_X]
move_cd_y = @[MOVE_CD_Y]
/

&surf_map_nml
zero_ocean = .false.
cd4 = 0.15
Expand Down
Loading

0 comments on commit dc814db

Please sign in to comment.