Skip to content

Commit 1bf78e3

Browse files
committed
Initialize tke to 0 for DYAMOND
The DYAMOND initial conditions did not set `Y.c.ρatke`, which was filled with NaNs.
1 parent b1ce1dc commit 1bf78e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/initial_conditions/initial_conditions.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,12 @@ function overwrite_initial_conditions!(
484484
center_space,
485485
) .* Y.c.ρ
486486
end
487+
488+
if hasproperty(Y.c, :sgs⁰) && hasproperty(Y.c.sgs⁰, :ρatke)
489+
# NOTE: This is not the most consistent, but it is better than NaNs
490+
fill!(Y.c.ρatke, 0)
491+
end
492+
487493
return nothing
488494
end
489495

0 commit comments

Comments
 (0)