Skip to content

Commit

Permalink
clean up default config and some function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Oct 26, 2023
1 parent 47d3ea2 commit 22c0aa5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
11 changes: 1 addition & 10 deletions config/default_configs/default_edmf_config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# EDMF configuration
turbconv:
help: "Turbulence convection scheme [`nothing` (default), `edmf`, 'prognostic_edmfx', 'diagnostic_edmfx']"
help: "Turbulence convection scheme [`nothing` (default), 'prognostic_edmfx', 'diagnostic_edmfx']"
value: ~
test_edmf_consistency:
help: "Test edmf equation consistency [`false` (default), `true`]"
value: false
imex_edmf_gm:
help: "Whether to split EDMF's `compute_gm_tendencies!` into implicit and explicit components"
value: false
imex_edmf_turbconv:
help: "Whether to split EDMF's `compute_turbconv_tendencies!` into implicit and explicit components"
value: false
advection_test:
help: "Switches off all grid-scale and subgrid-scale momentum tendencies [`false` (default), `true`]"
value: false
Expand Down
2 changes: 0 additions & 2 deletions src/cache/cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ end
function additional_cache(
Y,
default_cache,
parsed_args,
params,
atmos,
dt,
initial_condition,
)
(; precip_model, forcing_type, radiation_mode, turbconv_model) = atmos

Expand Down
4 changes: 1 addition & 3 deletions src/solver/model_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,12 @@ end

function get_turbconv_model(
FT,
moisture_model,
precip_model,
parsed_args,
turbconv_params,
)
turbconv = parsed_args["turbconv"]
@assert turbconv in
(nothing, "edmf", "edmfx", "prognostic_edmfx", "diagnostic_edmfx")
(nothing, "edmfx", "prognostic_edmfx", "diagnostic_edmfx")

return if turbconv == "prognostic_edmfx"
N = turbconv_params.updraft_number
Expand Down
4 changes: 0 additions & 4 deletions src/solver/type_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ function get_atmos(config::AtmosConfig, params)
forcing_type,
turbconv_model = get_turbconv_model(
FT,
moisture_model,
precip_model,
parsed_args,
turbconv_params,
),
Expand Down Expand Up @@ -532,11 +530,9 @@ function get_cache(
additional_cache(
Y,
_default_cache,
parsed_args,
params,
atmos,
simulation.dt,
initial_condition,
),
)
end
Expand Down

0 comments on commit 22c0aa5

Please sign in to comment.