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

Add regression testing for wave-sea ice coupling #2072

Open
wants to merge 45 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b95d739
Work in progress for S2SW_WAVICE regression test
NickSzapiro-NOAA Dec 12, 2023
446cc80
Add CICE FSD settings in tests/tests/cpld_s2sw_wavice_p8
NickSzapiro-NOAA Dec 12, 2023
78c4eab
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Dec 15, 2023
e30768c
Setting variables to run with wave-ice coupling
NickSzapiro-NOAA Dec 15, 2023
34b4a8a
Running versions of unstructured 270k and structured 1deg wave-ice co…
NickSzapiro-NOAA Jan 3, 2024
58c3a40
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Jan 4, 2024
a29fdb2
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Jan 28, 2024
dbbf76c
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Jan 30, 2024
a5059b9
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Feb 7, 2024
4f829ce
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Feb 12, 2024
7609d1d
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Mar 11, 2024
29e2adf
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Mar 14, 2024
3bd0c31
Remove structured wavice RT as not operational candidate
NickSzapiro-NOAA Mar 14, 2024
35666de
Delete tests/tests/cpld_s2sw_wavice_1deg_p8
NickSzapiro-NOAA Mar 14, 2024
c3442a3
Update .gitmodules to own WW3 branch
NickSzapiro-NOAA Mar 14, 2024
8f10182
Remove meshcap_IC4 option from CMakeLists.txt
NickSzapiro-NOAA Mar 14, 2024
8134907
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Mar 29, 2024
d07bf58
Add restart_fsd to env of restart ORT if wavice in test name
NickSzapiro-NOAA Mar 29, 2024
7c92102
Remove personal INPUTDATA_ROOT_WW3 in rt.sh
NickSzapiro-NOAA Mar 29, 2024
02fd9a8
Remove mediator history debugging lines in ufs.configure.s2sw.IN
NickSzapiro-NOAA Mar 29, 2024
737a22c
Update .gitmodules to updated personal WW3 branch
NickSzapiro-NOAA Apr 1, 2024
874cac7
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Apr 2, 2024
ed17d0f
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Apr 9, 2024
f9e3101
Remove 'export check_for_nans=false' in default_vars.sh
NickSzapiro-NOAA Apr 15, 2024
4fbee1f
Consistent UFS_CONFIGURE across WW3 unstructured tests
NickSzapiro-NOAA Apr 15, 2024
97792e0
Format wave-ice comment in rt.conf
NickSzapiro-NOAA Apr 15, 2024
6607153
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Apr 16, 2024
2a78946
Update WW3 hash
NickSzapiro-NOAA Apr 17, 2024
6e60ca3
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Apr 17, 2024
f568777
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Apr 19, 2024
1116b81
Enable wave-sea ice coupling in unstructured WW3 tests
NickSzapiro-NOAA Apr 24, 2024
e45f8c5
Prep default_vars.sh for sync
NickSzapiro-NOAA Apr 24, 2024
67302ad
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Apr 24, 2024
bbb2019
Re-add wavice coupling defaults in default_vars.sh
NickSzapiro-NOAA Apr 24, 2024
efaa644
Update WW3 hash
NickSzapiro-NOAA Apr 24, 2024
39d1677
Update WW3 hash
NickSzapiro-NOAA Apr 27, 2024
8a1bd77
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 1, 2024
9f06377
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 4, 2024
3ab42f0
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 7, 2024
cbe0311
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 13, 2024
8bc60d8
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 13, 2024
a800a46
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 16, 2024
b2de7b3
Merge branch 'ufs-community:develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 26, 2024
3e5f8d0
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA May 29, 2024
56c0b64
Merge branch 'develop' into cpld_s2sw_wavice
NickSzapiro-NOAA Jun 3, 2024
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
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
branch = develop
[submodule "WW3"]
path = WW3
url = https://github.com/NOAA-EMC/WW3
branch = dev/ufs-weather-model
url = https://github.com/NickSzapiro-NOAA/WW3
branch = wavice_sync
[submodule "stochastic_physics"]
path = stochastic_physics
url = https://github.com/NOAA-PSL/stochastic_physics
Expand Down
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ set(JEDI_DRIVER OFF CACHE BOOL "Enable JEDI as top level driver")
set(CMEPS_AOFLUX OFF CACHE BOOL "Enable atmosphere-ocean flux calculation in mediator")
set(PDLIB OFF CACHE BOOL "Enable Domain Decomposition in WW3 via PDLIB")
set(CDEPS_INLINE OFF CACHE BOOL "Enable CDEPS inline capability")
set(WAVICE OFF CACHE BOOL "Enable wave-sea ice coupling")
set(HYDRO OFF CACHE BOOL "Enable hydrostatic set")

set(CMAKE_Platform $ENV{CMAKE_Platform})
Expand Down Expand Up @@ -214,7 +215,11 @@ if(WW3)
list(APPEND _ufs_defs_private FRONT_WW3=WMESMFMD)
else()
if(PDLIB)
set(SWITCH "meshcap_pdlib" CACHE STRING "NUOPC mesh cap")
if(WAVICE)
set(SWITCH "meshcap_pdlib_IC4" CACHE STRING "NUOPC mesh cap")
else()
set(SWITCH "meshcap_pdlib" CACHE STRING "NUOPC mesh cap")
endif()
else()
set(SWITCH "meshcap" CACHE STRING "NUOPC mesh cap")
endif()
Expand Down
2 changes: 1 addition & 1 deletion WW3
6 changes: 6 additions & 0 deletions tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ export WW3_CUR='F'
export WW3_ICE='F'
export WW3_IC1='F'
export WW3_IC5='F'
export wav_coupling_to_cice=false
# ATMW
export WW3_MULTIGRID=true
export WW3_MODDEF=mod_def.glo_1deg
Expand Down Expand Up @@ -945,6 +946,11 @@ export_cice6() {
export CICE_FRAZIL_FWSALT=.true.
export CICE_KTHERM=2
export CICE_TFREEZE_OPTION=mushy
#Wave-ice coupling variables
export CICE_nfsd=1
export CICE_tr_fsd=.false.
export CICE_restart_fsd=.false.
export CICE_wave_spec_type=none
# SlenderX2
export CICE_NPROC=${ICE_tasks}
np2=$((CICE_NPROC/2))
Expand Down
4 changes: 4 additions & 0 deletions tests/opnReqTests/rst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ elif [[ $application == 'cpld' ]]; then
CICE_RUNTYPE='continue'
RUNTYPE='continue'
CICE_USE_RESTART_TIME='.true.'
if [[ ${CICE_tr_fsd} ]]; then
CICE_restart_fsd='.true.'
fi
MOM6_RESTART_SETTING="r"
RESTART_N=$(( FHMAX - FHROT ))
RESTART_FILE_PREFIX="${SYEAR}${SMONTH}${SDAY}.$(printf "%02d" $(( SHOUR + FHROT )))0000"
Expand Down Expand Up @@ -75,6 +78,7 @@ export NSTF_NAME=${NSTF_NAME}
export CICE_RUNTYPE=${CICE_RUNTYPE:-}
export RUNTYPE=${RUNTYPE:-}
export CICE_USE_RESTART_TIME=${CICE_USE_RESTART_TIME:-}
export CICE_restart_fsd=${CICE_restart_fsd:-}
export MOM6_RESTART_SETTING=${MOM6_RESTART_SETTING:-}
export RESTART_N=${RESTART_N:-}
export RESTART_FILE_SUFFIX_SECS=${RESTART_FILE_SUFFIX_SECS:-}
Expand Down
24 changes: 20 additions & 4 deletions tests/parm/ice_in.IN
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@
kmt_file = '@[CICE_MASK]'
kcatbound = 0
ncat = 5
nfsd = 1
nfsd = @[CICE_nfsd]
nilyr = 7
nslyr = 1
nblyr = 1
nfsd = 1
grid_atm = '@[CICE_GRIDATM]'
grid_ocn = '@[CICE_GRIDOCN]'
grid_ice = '@[CICE_GRIDICE]'
Expand All @@ -88,8 +87,8 @@
restart_pond_lvl = @[CICE_RESTART_POND_LVL]
tr_aero = .false.
restart_aero = .false.
tr_fsd = .false.
restart_fsd = .false.
tr_fsd = @[CICE_tr_fsd]
restart_fsd = @[CICE_restart_fsd]
/

&thermo_nml
Expand Down Expand Up @@ -172,6 +171,7 @@
l_mpond_fresh = .false.
tfrz_option = '@[CICE_TFREEZE_OPTION]'
restart_coszen = .true.
wave_spec_type = '@[CICE_wave_spec_type]'
/

&domain_nml
Expand Down Expand Up @@ -383,5 +383,21 @@
f_Cdn_ocn = 'x'
/

&icefields_fsd_nml
f_fsdrad = 'mdhxx'
f_fsdperim = 'mdhxx'
f_afsd = 'mdhxx'
f_afsdn = 'mdhxx'
f_dafsd_newi = 'x'
f_dafsd_latg = 'x'
f_dafsd_latm = 'x'
f_dafsd_wave = 'x'
f_dafsd_weld = 'x'
f_wave_sig_ht = 'x'
f_aice_ww = 'x'
f_diam_ww = 'x'
f_hice_ww = 'x'
/

&icefields_bgc_nml
/
1 change: 1 addition & 0 deletions tests/parm/ufs.configure.s2sw.IN
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ ALLCOMP_attributes::
orb_mode = fixed_year
orb_mvelp = 1.e36
orb_obliq = 1.e36
wav_coupling_to_cice = @[wav_coupling_to_cice]
::
16 changes: 8 additions & 8 deletions tests/rt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ RUN | cpld_restart_c48 | - noaacloud
COMPILE | s2swa_faster | intel | -DAPP=S2SWA -DCCPP_SUITES=FV3_GFS_v17_coupled_p8 -DFASTER=ON | - noaacloud | fv3 |
RUN | cpld_control_p8_faster | - noaacloud | baseline |

# Unstructured WW3 mesh
COMPILE | s2sw_pdlib | intel | -DAPP=S2SW -DCCPP_SUITES=FV3_GFS_v17_coupled_p8 -DPDLIB=ON | - noaacloud | fv3 |
RUN | cpld_control_pdlib_p8 | - noaacloud | baseline |
RUN | cpld_restart_pdlib_p8 | - noaacloud | | cpld_control_pdlib_p8
RUN | cpld_mpi_pdlib_p8 | - noaacloud | | cpld_control_pdlib_p8

COMPILE | s2sw_pdlib_debug | intel | -DAPP=S2SW -DCCPP_SUITES=FV3_GFS_v17_coupled_p8 -DPDLIB=ON -DDEBUG=ON | - noaacloud | fv3 |
RUN | cpld_debug_pdlib_p8 | - noaacloud | baseline |
# Unstructured WW3 mesh with wave-ice coupling
COMPILE | s2sw_pdlib | intel | -DAPP=S2SW -DCCPP_SUITES=FV3_GFS_v17_coupled_p8 -DPDLIB=ON -DWAVICE=ON | - noaacloud | fv3 |
RUN | cpld_control_pdlib_p8 | - noaacloud | baseline |
RUN | cpld_restart_pdlib_p8 | - noaacloud | | cpld_control_pdlib_p8
RUN | cpld_mpi_pdlib_p8 | - noaacloud | | cpld_control_pdlib_p8

COMPILE | s2sw_pdlib_debug | intel | -DAPP=S2SW -DCCPP_SUITES=FV3_GFS_v17_coupled_p8 -DPDLIB=ON -DDEBUG=ON -DWAVICE=ON | - noaacloud | fv3 |
RUN | cpld_debug_pdlib_p8 | - noaacloud | baseline |

### ATM tests ###
COMPILE | atm_dyn32 | intel | -DAPP=ATM -DCCPP_SUITES=FV3_GFS_v16,FV3_GFS_v16_flake,FV3_GFS_v17_p8,FV3_GFS_v17_p8_rrtmgp,FV3_GFS_v15_thompson_mynn_lam3km,FV3_WoFS_v0,FV3_GFS_v17_p8_mynn,FV3_GFS_v17_p8_ugwpv1 -D32BIT=ON | | fv3 |
Expand Down
10 changes: 9 additions & 1 deletion tests/tests/cpld_control_pdlib_p8
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ export eps_imesh=2.5e-1

export WW3_DOMAIN=global_270k
export MESH_WAV=mesh.${WW3_DOMAIN}.nc
export WW3_MODDEF=mod_def.exp.${WW3_DOMAIN}
export WW3_MODDEF=mod_def.ic4.exp.${WW3_DOMAIN}
export WW3_ICE='C'
export WW3_IC1='C'
export WW3_IC5='C'
export CICE_nfsd=12
export CICE_tr_fsd=.true.
export CICE_restart_fsd=.false.
export CICE_wave_spec_type=constant
export wav_coupling_to_cice=true

export DIAG_TABLE=diag_table_template
export FIELD_TABLE=field_table_thompson_noaero_tke
Expand Down
10 changes: 9 additions & 1 deletion tests/tests/cpld_debug_pdlib_p8
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,15 @@ export CICE_DIAGFREQ=`expr $((FHMAX-$FHROT)) \* 3600 / $DT_CICE`

export WW3_DOMAIN=global_270k
export MESH_WAV=mesh.${WW3_DOMAIN}.nc
export WW3_MODDEF=mod_def.exp.${WW3_DOMAIN}
export WW3_MODDEF=mod_def.ic4.exp.${WW3_DOMAIN}
export WW3_ICE='C'
export WW3_IC1='C'
export WW3_IC5='C'
export CICE_nfsd=12
export CICE_tr_fsd=.true.
export CICE_restart_fsd=.false.
export CICE_wave_spec_type=constant
export wav_coupling_to_cice=true

export DIAG_TABLE=diag_table_template
export FIELD_TABLE=field_table_thompson_noaero_tke
Expand Down
10 changes: 9 additions & 1 deletion tests/tests/cpld_mpi_pdlib_p8
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,15 @@ export eps_imesh=2.5e-1

export WW3_DOMAIN=global_270k
export MESH_WAV=mesh.${WW3_DOMAIN}.nc
export WW3_MODDEF=mod_def.exp.${WW3_DOMAIN}
export WW3_MODDEF=mod_def.ic4.exp.${WW3_DOMAIN}
export WW3_ICE='C'
export WW3_IC1='C'
export WW3_IC5='C'
export CICE_nfsd=12
export CICE_tr_fsd=.true.
export CICE_restart_fsd=.false.
export CICE_wave_spec_type=constant
export wav_coupling_to_cice=true

export DIAG_TABLE=diag_table_template
export FIELD_TABLE=field_table_thompson_noaero_tke
Expand Down
10 changes: 9 additions & 1 deletion tests/tests/cpld_restart_pdlib_p8
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ export CICE_DIAGFREQ=`expr $((FHMAX-$FHROT)) \* 3600 / $DT_CICE`

export WW3_DOMAIN=global_270k
export MESH_WAV=mesh.${WW3_DOMAIN}.nc
export WW3_MODDEF=mod_def.exp.${WW3_DOMAIN}
export WW3_MODDEF=mod_def.ic4.exp.${WW3_DOMAIN}
export WW3_ICE='C'
export WW3_IC1='C'
export WW3_IC5='C'
export CICE_nfsd=12
export CICE_tr_fsd=.true.
export CICE_restart_fsd=.false.
export CICE_wave_spec_type=constant
export wav_coupling_to_cice=true

export DIAG_TABLE=diag_table_template
export FIELD_TABLE=field_table_thompson_noaero_tke
Expand Down
Loading