Skip to content

Commit

Permalink
MOM6: Refactor a few lines in vertical viscosity
Browse files Browse the repository at this point in the history
- NOAA-GFDL/MOM6@809d56e36 Refactor a few lines in vertical viscosity
- NOAA-GFDL/MOM6@e18709075 Remove Prandtl_turb in vertvisc_type
- NOAA-GFDL/MOM6@01620987b +Revise the rescaled units of forces%tau_mag
- NOAA-GFDL/MOM6@1344e7cb8 Add MLD_out to diagnose MLD (#832)
- NOAA-GFDL/MOM6@51b1515fa Correct indenting in ePBL_column
- NOAA-GFDL/MOM6@a71e0fb5e Debugging checksum on full range of Kh_h and Kh_q (#822)
- NOAA-GFDL/MOM6@9924a1909 Passing shelf_sfc_mass_flux to ice shelf (#818)
  • Loading branch information
mom6bot authored and Hallberg-NOAA committed Feb 23, 2025
1 parent e31614d commit 5f4e814
Show file tree
Hide file tree
Showing 77 changed files with 77 additions and 153 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -1797,6 +1795,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ INTERNAL_WAVE_SPEED_BETTER_EST = False ! [Boolean] default = True
CHANNEL_DRAG = True ! [Boolean] default = False
! If true, the bottom drag is exerted directly on each layer proportional to the
! fraction of the bottom it overlies.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -446,6 +444,8 @@ USE_JACKSON_PARAM = True ! [Boolean] default = False
MAX_RINO_IT = 25 ! [nondim] default = 50
! The maximum number of iterations that may be used to estimate the Richardson
! number driven mixing.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_ITER_BUG = True ! [Boolean] default = False
! If true, use an older, dimensionally inconsistent estimate of the derivative
! of diffusivity with energy in the Newton's method iteration. The bug causes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -1797,6 +1795,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ INTERNAL_WAVE_SPEED_BETTER_EST = False ! [Boolean] default = True
CHANNEL_DRAG = True ! [Boolean] default = False
! If true, the bottom drag is exerted directly on each layer proportional to the
! fraction of the bottom it overlies.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -422,6 +420,8 @@ USE_JACKSON_PARAM = True ! [Boolean] default = False
MAX_RINO_IT = 25 ! [nondim] default = 50
! The maximum number of iterations that may be used to estimate the Richardson
! number driven mixing.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.

! === module MOM_diabatic_aux ===
! The following parameters are used for auxiliary diabatic processes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -1797,6 +1795,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ INTERNAL_WAVE_SPEED_BETTER_EST = False ! [Boolean] default = True
CHANNEL_DRAG = True ! [Boolean] default = False
! If true, the bottom drag is exerted directly on each layer proportional to the
! fraction of the bottom it overlies.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -425,6 +423,8 @@ USE_JACKSON_PARAM = True ! [Boolean] default = False
MAX_RINO_IT = 25 ! [nondim] default = 50
! The maximum number of iterations that may be used to estimate the Richardson
! number driven mixing.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.

! === module MOM_diabatic_aux ===
! The following parameters are used for auxiliary diabatic processes.
Expand Down
4 changes: 2 additions & 2 deletions ice_ocean_SIS2/Baltic/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -1797,6 +1795,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
4 changes: 2 additions & 2 deletions ice_ocean_SIS2/Baltic/MOM_parameter_doc.short
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ INTERNAL_WAVE_SPEED_BETTER_EST = False ! [Boolean] default = True
CHANNEL_DRAG = True ! [Boolean] default = False
! If true, the bottom drag is exerted directly on each layer proportional to the
! fraction of the bottom it overlies.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = True ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -435,6 +433,8 @@ USE_JACKSON_PARAM = True ! [Boolean] default = False
MAX_RINO_IT = 25 ! [nondim] default = 50
! The maximum number of iterations that may be used to estimate the Richardson
! number driven mixing.
PRANDTL_TURB = 0.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.

! === module MOM_diabatic_aux ===
! The following parameters are used for auxiliary diabatic processes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 1.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = False ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -2081,6 +2079,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 1.0 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
4 changes: 2 additions & 2 deletions ice_ocean_SIS2/Baltic_OM4_025/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1117,8 +1117,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = False ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -2094,6 +2092,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
4 changes: 2 additions & 2 deletions ice_ocean_SIS2/Baltic_OM4_025/MOM_parameter_doc.short
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,6 @@ INTERNAL_WAVE_SPEED_BETTER_EST = False ! [Boolean] default = True
CHANNEL_DRAG = True ! [Boolean] default = False
! If true, the bottom drag is exerted directly on each layer proportional to the
! fraction of the bottom it overlies.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
HBBL = 10.0 ! [m]
! The thickness of a bottom boundary layer with a viscosity increased by
! KV_EXTRA_BBL if BOTTOMDRAGLAW is not defined, or the thickness over which
Expand Down Expand Up @@ -598,6 +596,8 @@ USE_JACKSON_PARAM = True ! [Boolean] default = False
MAX_RINO_IT = 25 ! [nondim] default = 50
! The maximum number of iterations that may be used to estimate the Richardson
! number driven mixing.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_ITER_BUG = True ! [Boolean] default = False
! If true, use an older, dimensionally inconsistent estimate of the derivative
! of diffusivity with energy in the Newton's method iteration. The bug causes
Expand Down
4 changes: 2 additions & 2 deletions ice_ocean_SIS2/Baltic_OM4_05/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = False ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -2113,6 +2111,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
4 changes: 2 additions & 2 deletions ice_ocean_SIS2/Baltic_OM4_05/MOM_parameter_doc.short
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,6 @@ INTERNAL_WAVE_SPEED_BETTER_EST = False ! [Boolean] default = True
CHANNEL_DRAG = True ! [Boolean] default = False
! If true, the bottom drag is exerted directly on each layer proportional to the
! fraction of the bottom it overlies.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
HBBL = 10.0 ! [m]
! The thickness of a bottom boundary layer with a viscosity increased by
! KV_EXTRA_BBL if BOTTOMDRAGLAW is not defined, or the thickness over which
Expand Down Expand Up @@ -626,6 +624,8 @@ USE_JACKSON_PARAM = True ! [Boolean] default = False
MAX_RINO_IT = 25 ! [nondim] default = 50
! The maximum number of iterations that may be used to estimate the Richardson
! number driven mixing.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_ITER_BUG = True ! [Boolean] default = False
! If true, use an older, dimensionally inconsistent estimate of the derivative
! of diffusivity with energy in the Newton's method iteration. The bug causes
Expand Down
4 changes: 2 additions & 2 deletions ice_ocean_SIS2/OM4_025/MOM_parameter_doc.all
Original file line number Diff line number Diff line change
Expand Up @@ -1117,8 +1117,6 @@ CHANNEL_DRAG = True ! [Boolean] default = False
LINEAR_DRAG = False ! [Boolean] default = False
! If LINEAR_DRAG and BOTTOMDRAGLAW are defined the drag law is
! cdrag*DRAG_BG_VEL*u.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
DYNAMIC_VISCOUS_ML = False ! [Boolean] default = False
! If true, use a bulk Richardson number criterion to determine the mixed layer
! thickness for viscosity.
Expand Down Expand Up @@ -2094,6 +2092,8 @@ KAPPA_SHEAR_ELIM_MASSLESS = True ! [Boolean] default = True
MAX_KAPPA_SHEAR_IT = 13 ! default = 13
! The maximum number of iterations that may be used to estimate the
! time-averaged diffusivity.
PRANDTL_TURB = 1.25 ! [nondim] default = 1.0
! The turbulent Prandtl number applied to shear instability.
KAPPA_SHEAR_MAX_KAP_SRC_CHG = 10.0 ! [nondim] default = 10.0
! The maximum permitted increase in the kappa source within an iteration
! relative to the local source; this must be greater than 1. The lower limit
Expand Down
Loading

0 comments on commit 5f4e814

Please sign in to comment.