Skip to content

Commit 97799b5

Browse files
authored
Merge pull request #3957 from CliMA/zs/hotfix
only use specific_env_mse for prognostic EDMF
2 parents 293d976 + d26e8c2 commit 97799b5

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/utils/variable_manipulations.jl

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -435,19 +435,7 @@ function ᶜspecific_env_mse(Y, p)
435435
ρa⁰mse⁰ = ᶜenv_value(ᶜρmse, sgsʲ -> sgsʲ.ρa * sgsʲ.mse, Y.c.sgsʲs)
436436
ᶜρa⁰ = @. lazy(ρa⁰(Y.c.ρ, Y.c.sgsʲs, turbconv_model))
437437
elseif turbconv_model isa DiagnosticEDMFX || turbconv_model isa EDOnlyEDMFX
438-
439-
n = n_mass_flux_subdomains(turbconv_model)
440-
(; ᶜρaʲs) = p.precomputed
441-
ᶜρamseʲ_sum = p.scratch.ᶜtemp_scalar_2
442-
@. ᶜρamseʲ_sum = 0
443-
for j in 1:n
444-
ᶜρaʲ = ᶜρaʲs.:($j)
445-
ᶜmseʲ = p.precomputed.ᶜmseʲs.:($j)
446-
@. ᶜρamseʲ_sum += ᶜρaʲ * ᶜmseʲ
447-
end
448-
ρa⁰mse⁰ = @. lazy(ᶜρmse - ᶜρamseʲ_sum)
449-
# Denominator: ρa⁰ = ρ - Σ ρaʲ, assume ᶜρa⁰ = ρ
450-
ᶜρa⁰ = Y.c.ρ
438+
error("Not implemented. You should use grid mean values.")
451439
end
452440

453441
return @. lazy(specific(ρa⁰mse⁰, ᶜρa⁰, ᶜρmse, Y.c.ρ, turbconv_model))

0 commit comments

Comments
 (0)