Skip to content

Commit 5837f0b

Browse files
authored
Merge pull request #3728 from CliMA/zs/rm_zero_tendency
remove zero_tendency config
2 parents 1d2b12f + 2c7ebd9 commit 5837f0b

File tree

12 files changed

+11
-71
lines changed

12 files changed

+11
-71
lines changed

.buildkite/longruns_gpu/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ steps:
149149
slurm_time: 24:00:00
150150
env:
151151
CLIMACOMMS_DEVICE: "CUDA"
152-
JOB_NAME: "longrun_aquaplanet_allsky_progedmf_diffonly_0M"
152+
JOB_NAME: "longrun_aquaplanet_allsky_progedmf_0M"
153153

154154
- label: ":computer: aquaplanet equilmoist allsky radiation + 0M microphysics + earth topography"
155155
command:

config/default_configs/default_config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,6 @@ turbconv:
315315
advection_test:
316316
help: "Switches off all grid-scale and subgrid-scale momentum tendencies [`false` (default), `true`]"
317317
value: false
318-
zero_tendency:
319-
help: "Turns off tendencies [`nothing` (default), `grid_scale`, `subgrid_scale`]"
320-
value: ~
321318
implicit_sgs_advection:
322319
help: "Whether to treat the subgrid-scale vertical advection tendency implicitly [`false` (default), `true`]"
323320
value: false

config/longrun_configs/longrun_aquaplanet_allsky_progedmf_diffonly_0M.yml renamed to config/longrun_configs/longrun_aquaplanet_allsky_progedmf_0M.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,27 @@ deep_atmosphere: false
66
rayleigh_sponge: true
77
viscous_sponge: true
88
implicit_diffusion: true
9+
implicit_sgs_advection: true
10+
implicit_sgs_mass_flux: true
911
approximate_linear_solve_iters: 2
1012
max_newton_iters_ode: 3
11-
dt: "120secs"
12-
t_end: "240days"
13+
dt: "20secs"
14+
t_end: "60days"
1315
dt_save_state_to_disk: "30days"
1416
moist: "equil"
1517
rad: "allskywithclear"
1618
dt_rad: "1hours"
1719
dt_cloud_fraction: "1hours"
1820
surface_setup: "DefaultMoninObukhov"
1921
turbconv: "prognostic_edmfx"
20-
zero_tendency: "subgrid_scale"
2122
prognostic_tke: true
2223
edmfx_upwinding: "first_order"
2324
edmfx_entr_model: "Generalized"
2425
edmfx_detr_model: "Generalized"
25-
edmfx_nh_pressure: false
26+
edmfx_nh_pressure: true
2627
edmfx_filter: true
27-
edmfx_sgs_mass_flux: false
28+
prognostic_tke: true
29+
edmfx_sgs_mass_flux: true
2830
edmfx_sgs_diffusive_flux: true
2931
precip_model: "0M"
3032
toml: [toml/longrun_aquaplanet_progedmf.toml]

docs/src/longruns.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ Aquaplanet with idealized insolation, all-sky radiation, diagnostic edmf
5050
and 0-moment microphysics.
5151
```
5252
```
53-
longrun_aquaplanet_allsky_progedmf_diffonly_0M
53+
longrun_aquaplanet_allsky_progedmf_0M
5454
55-
Aquaplanet with idealized insolation, all-sky radiation, prognostic edmf with diffusion only
56-
and 0-moment microphysics.
55+
Aquaplanet with idealized insolation, all-sky radiation, prognostic edmf with 0-moment microphysics.
5756
```
5857
```
5958
longrun_aquaplanet_allsky_tvinsol_0M_slabocean

post_processing/ci_plots.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ AquaplanetPlots = Union{
11331133
Val{:rcemipii_sphere_diagnostic_edmfx},
11341134
Val{:longrun_aquaplanet_allsky_0M},
11351135
Val{:longrun_aquaplanet_allsky_diagedmf_0M},
1136-
Val{:longrun_aquaplanet_allsky_progedmf_diffonly_0M},
1136+
Val{:longrun_aquaplanet_allsky_progedmf_0M},
11371137
Val{:longrun_aquaplanet_allsky_0M_earth},
11381138
Val{:longrun_aquaplanet_dyamond},
11391139
Val{:longrun_aquaplanet_allsky_tvinsol_0M_slabocean},

src/ClimaAtmos.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ include(joinpath("utils", "discrete_hydrostatic_balance.jl"))
5252

5353
include(joinpath("prognostic_equations", "pressure_work.jl"))
5454
include(joinpath("prognostic_equations", "zero_velocity.jl"))
55-
include(joinpath("prognostic_equations", "zero_tendency.jl"))
5655

5756
include(joinpath("prognostic_equations", "implicit", "implicit_tendency.jl"))
5857
include(joinpath("prognostic_equations", "implicit", "implicit_solver.jl"))

src/prognostic_equations/implicit/implicit_tendency.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ NVTX.@annotate function implicit_tendency!(Yₜ, Y, p, t)
5050
# please DO NOT add additional velocity tendencies after this function
5151
zero_velocity_tendency!(Yₜ, Y, p, t)
5252

53-
# NOTE: This will zero out all tendencies
54-
# please DO NOT add additional tendencies after this function
55-
zero_tendency!(Yₜ, Y, p, t, p.atmos.tendency_model, p.atmos.turbconv_model)
5653
return nothing
5754
end
5855

src/prognostic_equations/remaining_tendency.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,4 @@ NVTX.@annotate function additional_tendency!(Yₜ, Y, p, t)
179179
t,
180180
p.atmos.orographic_gravity_wave,
181181
)
182-
# NOTE: This will zero out all tendencies
183-
# please DO NOT add additional tendencies after this function
184-
zero_tendency!(Yₜ, Y, p, t, p.atmos.tendency_model, p.atmos.turbconv_model)
185182
end

src/prognostic_equations/zero_tendency.jl

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/solver/model_getters.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -525,18 +525,6 @@ function get_tracers(parsed_args)
525525
return (; aerosol_names)
526526
end
527527

528-
function get_tendency_model(parsed_args)
529-
zero_tendency_name = parsed_args["zero_tendency"]
530-
@assert zero_tendency_name in (nothing, "grid_scale", "subgrid_scale")
531-
return if zero_tendency_name == "grid_scale"
532-
NoGridScaleTendency()
533-
elseif zero_tendency_name == "subgrid_scale"
534-
NoSubgridScaleTendency()
535-
elseif isnothing(zero_tendency_name)
536-
UseAllTendency()
537-
end
538-
end
539-
540528
function check_case_consistency(parsed_args)
541529
# if any flags is ISDAC, check that all are ISDAC
542530
ic = parsed_args["initial_condition"]

0 commit comments

Comments
 (0)