Skip to content

Commit

Permalink
Clip tke_press
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Jun 27, 2024
1 parent 0738db9 commit b62b4e2
Show file tree
Hide file tree
Showing 37 changed files with 6 additions and 39 deletions.
1 change: 0 additions & 1 deletion config/longrun_configs/amip_target_diagedmf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ dt_cloud_fraction: "1hours"
idealized_insolation: false
surface_setup: "DefaultMoninObukhov"
turbconv: "diagnostic_edmfx"
ode_algo: ARS343
implicit_diffusion: true
approximate_linear_solve_iters: 2
prognostic_tke: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ rad: "allskywithclear"
dt_rad: "6hours"
surface_setup: "DefaultMoninObukhov"
turbconv: "diagnostic_edmfx"
ode_algo: ARS343
implicit_diffusion: true
approximate_linear_solve_iters: 2
prognostic_tke: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ rad: "clearsky"
dt_rad: "6hours"
surface_setup: "DefaultMoninObukhov"
turbconv: "diagnostic_edmfx"
ode_algo: ARS343
implicit_diffusion: true
approximate_linear_solve_iters: 2
prognostic_tke: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ rad: "clearsky"
dt_rad: "6hours"
surface_setup: "DefaultMoninObukhov"
turbconv: "prognostic_edmfx"
ode_algo: ARS343
implicit_diffusion: true
approximate_linear_solve_iters: 2
max_newton_iters_ode: 3
Expand Down
1 change: 0 additions & 1 deletion config/model_configs/aquaplanet_diagedmf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ precip_model: 0M
dt: 100secs
t_end: 12hours
toml: [toml/diagnostic_edmfx.toml]
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/aquaplanet_progedmf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ precip_model: 0M
dt: 10secs
t_end: 3hours
toml: [toml/prognostic_edmfx.toml]
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/diagnostic_edmfx_aquaplanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ t_end: 12hours
dt_save_state_to_disk: 12hours
regression_test: true
toml: [toml/diagnostic_edmfx_0M.toml]
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/diagnostic_edmfx_bomex_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
ode_algo: ARS343
5 changes: 3 additions & 2 deletions config/model_configs/diagnostic_edmfx_dycoms_rf01_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ z_max: 1500
z_stretch: false
dt: 100secs
t_end: 4hours
dt_save_state_to_disk: 10mins
# dt_save_state_to_disk: 10mins
toml: [toml/diagnostic_edmfx.toml]
netcdf_interpolation_num_points: [8, 8, 30]
# output_default_diagnostics: false
# FLOAT_TYPE: "Float64"
diagnostics:
- short_name: [ts, ta, thetaa, ha, pfull, rhoa, ua, va, wa, hur, hus, cl, clw, cli, hussfc, evspsbl, pr]
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/diagnostic_edmfx_dycoms_rf02_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ diagnostics:
period: 10mins
- short_name: [husra, hussn]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/diagnostic_edmfx_gabls_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/diagnostic_edmfx_rico_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ diagnostics:
period: 10mins
- short_name: [husra, hussn]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/diagnostic_edmfx_test_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
ode_algo: ARS343
4 changes: 2 additions & 2 deletions config/model_configs/diagnostic_edmfx_trmm_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ z_max: 16400
z_stretch: false
dt: 200secs
t_end: 6hours
dt_save_state_to_disk: 10mins
# dt_save_state_to_disk: 10mins
FLOAT_TYPE: "Float64"
toml: [toml/diagnostic_edmfx.toml]
netcdf_interpolation_num_points: [8, 8, 82]
output_default_diagnostics: false
diagnostics:
- short_name: [ts, ta, thetaa, ha, pfull, rhoa, ua, va, wa, hur, hus, cl, clw, cli, hussfc, evspsbl, pr]
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
- short_name: [husra, hussn]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/diagnostic_edmfx_trmm_box_0M.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ diagnostics:
period: 10mins
- short_name: [husra, hussn]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/gpu_diagnostic_edmfx_aquaplanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ precip_model: 1M
dt: 100secs
t_end: 6hours
toml: [toml/diagnostic_edmfx.toml]
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/gpu_prognostic_edmfx_aquaplanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ diagnostics:
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
reduction_time: average
period: 1hours
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_adv_test_column.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, taen, thetaaen, haen, husen, huren, clwen, clien, tke, lmix]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_aquaplanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ diagnostics:
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, tke, lmix]
reduction_time: average
period: 1hours
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_bomex_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_bomex_column.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, lmixw, lmixtke, lmixb, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, lmixw, lmixtke, lmixb, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_gabls_column.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_gcmdriven_column.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_rico_column.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ diagnostics:
period: 10mins
- short_name: [husra, hussn]
period: 10mins
ode_algo: ARS343
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ diagnostics:
period: 10mins
- short_name: [entr, detr, lmix, bgrad, strain, edt, evu]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_trmm_column.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ diagnostics:
period: 10mins
- short_name: [husra, hussn]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/prognostic_edmfx_trmm_column_0M.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ diagnostics:
period: 10mins
- short_name: [arup, waup, taup, thetaaup, haup, husup, hurup, clwup, cliup, waen, taen, thetaaen, haen, husen, huren, clwen, clien, tke, lmix]
period: 10mins
ode_algo: ARS343
1 change: 0 additions & 1 deletion config/model_configs/rcemipii_sphere_diagnostic_edmfx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ dt: 100secs
t_end: 12hours
dt_save_state_to_disk: 12hours
toml: [toml/diagnostic_edmfx_0M.toml]
ode_algo: ARS343
2 changes: 1 addition & 1 deletion src/prognostic_equations/edmfx_tke.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function edmfx_tke_tendency!(
)
end
# pressure work
@. Yₜ.c.sgs⁰.ρatke += ᶜtke_press
@. Yₜ.c.sgs⁰.ρatke += ifelse(ᶜtke_press >= 0, ᶜtke_press, 0)
end

return nothing
Expand Down

0 comments on commit b62b4e2

Please sign in to comment.