Skip to content

Commit b515307

Browse files
committed
fix: error on inconsistent diffusion option
1 parent 47166b3 commit b515307

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/prognostic_equations/implicit/manual_sparse_jacobian.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ function update_jacobian!(alg::ManualSparseJacobian, cache, Y, p, dtγ, t)
587587
vertical_diffusion,
588588
)
589589
ᶜK_u = ᶜK_h
590-
else
590+
elseif p.atmos.turbconv_model isa AbstractEDMF
591591
(; ᶜlinear_buoygrad, ᶜstrain_rate_norm) = p.precomputed
592592
ᶜρa⁰ =
593593
p.atmos.turbconv_model isa PrognosticEDMFX ?
@@ -608,6 +608,8 @@ function update_jacobian!(alg::ManualSparseJacobian, cache, Y, p, dtγ, t)
608608
),
609609
)
610610
ᶜK_h = @. lazy(eddy_diffusivity(ᶜK_u, ᶜprandtl_nvec))
611+
else
612+
error("Unknown vertical_diffusion type")
611613
end
612614

613615
α_vert_diff_tracer = CAP.α_vert_diff_tracer(params)

0 commit comments

Comments
 (0)