Skip to content

Commit dbd9169

Browse files
Apply formatter
1 parent 4dea39d commit dbd9169

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

src/parameterized_tendencies/les_sgs_models/smagorinsky_lilly.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ function vertical_smagorinsky_lilly_tendency!(Yₜ, Y, p, t, ::SmagorinskyLilly)
162162
)
163163

164164
foreach_gs_tracer(Yₜ, Y) do ᶜρχₜ, ᶜρχ, ρχ_name
165-
ᶜ∇ᵥρD∇χₜ = @. lazy(ᶜdivᵥ_ρχ(-(ᶠρ * ᶠD_smag * ᶠgradᵥ(specific(ᶜρχ, Y.c.ρ)))))
165+
ᶜ∇ᵥρD∇χₜ =
166+
@. lazy(ᶜdivᵥ_ρχ(-(ᶠρ * ᶠD_smag * ᶠgradᵥ(specific(ᶜρχ, Y.c.ρ)))))
166167
@. ᶜρχₜ -= ᶜ∇ᵥρD∇χₜ
167168
# Rain and snow does not affect the mass
168169
if ρχ_name == @name(ρq_tot)

src/prognostic_equations/vertical_diffusion_boundary_layer.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,13 @@ function vertical_diffusion_boundary_layer_tendency!(
106106
else
107107
@. ᶜK_h_scaled = ᶜK_h
108108
end
109-
@. ᶜρχₜ_diffusion =
110-
ᶜdivᵥ_ρχ(-(ᶠinterp(Y.c.ρ) * ᶠinterp(ᶜK_h_scaled) * ᶠgradᵥ(specific(ᶜρχ, Y.c.ρ))))
109+
@. ᶜρχₜ_diffusion = ᶜdivᵥ_ρχ(
110+
-(
111+
ᶠinterp(Y.c.ρ) *
112+
ᶠinterp(ᶜK_h_scaled) *
113+
ᶠgradᵥ(specific(ᶜρχ, Y.c.ρ))
114+
),
115+
)
111116
@. ᶜρχₜ -= ᶜρχₜ_diffusion
112117
# Only add contribution from total water diffusion to mass tendency
113118
# (exclude contributions from diffusion of condensate, precipitation)

src/utils/variable_manipulations.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ Returns:
6969
"""
7070
tracer_names(field) =
7171
unrolled_filter(MatrixFields.top_level_names(field)) do name
72-
!(name in (@name(ρ), @name(ρe_tot), @name(uₕ), @name(sgs⁰), @name(sgsʲs)))
72+
!(
73+
name in
74+
(@name(ρ), @name(ρe_tot), @name(uₕ), @name(sgs⁰), @name(sgsʲs))
75+
)
7376
end
7477

7578
"""

0 commit comments

Comments
 (0)