Skip to content

Commit 493cedd

Browse files
authored
Merge branch 'dev/gfdl' into reproducing_sum_unscale
2 parents 03ed726 + d8a270b commit 493cedd

File tree

5 files changed

+1824
-576
lines changed

5 files changed

+1824
-576
lines changed

config_src/drivers/solo_driver/MOM_surface_forcing.F90

+12-8
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ module MOM_surface_forcing
4545
use user_surface_forcing, only : USER_surface_forcing_init, user_surface_forcing_CS
4646
use user_revise_forcing, only : user_alter_forcing, user_revise_forcing_init
4747
use user_revise_forcing, only : user_revise_forcing_CS
48-
use idealized_hurricane, only : idealized_hurricane_wind_init
49-
use idealized_hurricane, only : idealized_hurricane_wind_forcing, SCM_idealized_hurricane_wind_forcing
50-
use idealized_hurricane, only : idealized_hurricane_CS
48+
use idealized_hurricane, only : idealized_hurricane_wind_forcing
49+
use idealized_hurricane, only : idealized_hurricane_wind_init, idealized_hurricane_CS
5150
use SCM_CVmix_tests, only : SCM_CVmix_tests_surface_forcing_init
5251
use SCM_CVmix_tests, only : SCM_CVmix_tests_wind_forcing
5352
use SCM_CVmix_tests, only : SCM_CVmix_tests_buoyancy_forcing
@@ -297,7 +296,8 @@ subroutine set_forcing(sfc_state, forces, fluxes, day_start, day_interval, G, US
297296
elseif (trim(CS%wind_config) == "ideal_hurr") then
298297
call idealized_hurricane_wind_forcing(sfc_state, forces, day_center, G, US, CS%idealized_hurricane_CSp)
299298
elseif (trim(CS%wind_config) == "SCM_ideal_hurr") then
300-
call SCM_idealized_hurricane_wind_forcing(sfc_state, forces, day_center, G, US, CS%idealized_hurricane_CSp)
299+
call MOM_error(FATAL, "MOM_surface_forcing (set_forcing): "//&
300+
'WIND_CONFIG = "SCM_ideal_hurr" is a depricated option.')
301301
elseif (trim(CS%wind_config) == "SCM_CVmix_tests") then
302302
call SCM_CVmix_tests_wind_forcing(sfc_state, forces, day_center, G, US, CS%SCM_CVmix_tests_CSp)
303303
elseif (trim(CS%wind_config) == "USER") then
@@ -1780,8 +1780,8 @@ subroutine surface_forcing_init(Time, G, US, param_file, diag, CS, tracer_flow_C
17801780
call get_param(param_file, mdl, "WIND_CONFIG", CS%wind_config, &
17811781
"The character string that indicates how wind forcing is specified. Valid "//&
17821782
"options include (file), (data_override), (2gyre), (1gyre), (gyres), (zero), "//&
1783-
"(const), (Neverworld), (scurves), (ideal_hurr), (SCM_ideal_hurr), "//&
1784-
"(SCM_CVmix_tests) and (USER).", default="zero")
1783+
"(const), (Neverworld), (scurves), (ideal_hurr), (SCM_CVmix_tests) and (USER).", &
1784+
default="zero")
17851785
if (trim(CS%wind_config) == "file") then
17861786
call get_param(param_file, mdl, "WIND_FILE", CS%wind_file, &
17871787
"The file in which the wind stresses are found in "//&
@@ -1990,9 +1990,13 @@ subroutine surface_forcing_init(Time, G, US, param_file, diag, CS, tracer_flow_C
19901990
call dumbbell_surface_forcing_init(Time, G, US, param_file, diag, CS%dumbbell_forcing_CSp)
19911991
elseif (trim(CS%wind_config) == "MESO" .or. trim(CS%buoy_config) == "MESO" ) then
19921992
call MESO_surface_forcing_init(Time, G, US, param_file, diag, CS%MESO_forcing_CSp)
1993-
elseif (trim(CS%wind_config) == "ideal_hurr" .or.&
1994-
trim(CS%wind_config) == "SCM_ideal_hurr") then
1993+
elseif (trim(CS%wind_config) == "ideal_hurr") then
19951994
call idealized_hurricane_wind_init(Time, G, US, param_file, CS%idealized_hurricane_CSp)
1995+
elseif (trim(CS%wind_config) == "SCM_ideal_hurr") then
1996+
call MOM_error(FATAL, "MOM_surface_forcing (surface_forcing_init): "//&
1997+
'WIND_CONFIG = "SCM_ideal_hurr" is a depricated option. '//&
1998+
'To obtain mathematically equivalent results set '//&
1999+
'WIND_CONFIG = "ideal_hurr", IDL_HURR_SCM = True and IDL_HURR_X0 = 6.48e+05.')
19962000
elseif (trim(CS%wind_config) == "const") then
19972001
call get_param(param_file, mdl, "CONST_WIND_TAUX", CS%tau_x0, &
19982002
"With wind_config const, this is the constant zonal wind-stress", &

src/parameterizations/vertical/MOM_diabatic_driver.F90

+2-2
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ subroutine diabatic_ALE_legacy(u, v, h, tv, BLD, fluxes, visc, ADp, CDp, dt, Tim
858858
endif
859859

860860
call find_uv_at_h(u, v, h, u_h, v_h, G, GV, US)
861-
call energetic_PBL(h, u_h, v_h, tv, fluxes, dt, Kd_ePBL, G, GV, US, &
861+
call energetic_PBL(h, u_h, v_h, tv, fluxes, visc, dt, Kd_ePBL, G, GV, US, &
862862
CS%ePBL, stoch_CS, dSV_dT, dSV_dS, cTKE, SkinBuoyFlux, waves=waves)
863863

864864
call energetic_PBL_get_MLD(CS%ePBL, BLD(:,:), G, US)
@@ -1410,7 +1410,7 @@ subroutine diabatic_ALE(u, v, h, tv, BLD, fluxes, visc, ADp, CDp, dt, Time_end,
14101410
endif
14111411

14121412
call find_uv_at_h(u, v, h, u_h, v_h, G, GV, US)
1413-
call energetic_PBL(h, u_h, v_h, tv, fluxes, dt, Kd_ePBL, G, GV, US, &
1413+
call energetic_PBL(h, u_h, v_h, tv, fluxes, visc, dt, Kd_ePBL, G, GV, US, &
14141414
CS%ePBL, stoch_CS, dSV_dT, dSV_dS, cTKE, SkinBuoyFlux, waves=waves)
14151415

14161416
call energetic_PBL_get_MLD(CS%ePBL, BLD(:,:), G, US)

0 commit comments

Comments
 (0)