Skip to content

Commit

Permalink
reduce dt
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Dec 12, 2023
1 parent 988ff6a commit 79012c8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion config/model_configs/diagnostic_edmfx_bomex_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ y_elem: 2
z_elem: 60
z_max: 3e3
z_stretch: false
dt: "200secs"
dt: "100secs"
t_end: "6hours"
dt_save_to_disk: "10mins"
toml: [toml/diagnostic_edmfx_box.toml]
Expand Down
2 changes: 1 addition & 1 deletion config/model_configs/diagnostic_edmfx_dycoms_rf01_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ y_elem: 2
z_elem: 30
z_max: 1500
z_stretch: false
dt: 200secs
dt: 100secs
t_end: 4hours
dt_save_to_disk: 10mins
toml: [toml/diagnostic_edmfx_box.toml]
2 changes: 1 addition & 1 deletion config/model_configs/diagnostic_edmfx_rico_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ y_elem: 2
z_elem: 100
z_max: 4e3
z_stretch: false
dt: 200secs
dt: 100secs
t_end: 8hours
dt_save_to_disk: 10mins
toml: [toml/diagnostic_edmfx_trmm_box.toml]
2 changes: 1 addition & 1 deletion config/model_configs/diagnostic_edmfx_trmm_box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ y_elem: 2
z_elem: 82
z_max: 16400
z_stretch: false
dt: 300secs
dt: 200secs
t_end: 6hours
dt_save_to_disk: 10mins
FLOAT_TYPE: "Float64"
Expand Down
21 changes: 10 additions & 11 deletions src/cache/diagnostic_edmf_precomputed_quantities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -513,17 +513,16 @@ function set_diagnostic_edmf_precomputed_quantities_do_integral!(Y, p, t)
p.atmos.edmfx_detr_model,
)

if i > 1
@. detrʲ_prev_level = limit_entrainment(
detrʲ_prev_level,
draft_area(ρaʲ_prev_level, ρʲ_prev_level),
get_physical_w(
u³ʲ_prev_halflevel,
local_geometry_prev_halflevel,
),
dz_prev_level,
)
end
@. detrʲ_prev_level = max(detrʲ_prev_level, 0)
@. detrʲ_prev_level = limit_detrainment(
detrʲ_prev_level,
draft_area(ρaʲ_prev_level, ρʲ_prev_level),
get_physical_w(
u³ʲ_prev_halflevel,
local_geometry_prev_halflevel,
),
dz_prev_level,
)

ρaʲu³ʲ_data = p.scratch.temp_data_level_2
ρaʲu³ʲ_datah_tot = ρaʲu³ʲ_dataq_tot = p.scratch.temp_data_level_3
Expand Down

0 comments on commit 79012c8

Please sign in to comment.