Skip to content

Commit

Permalink
Merge #2190
Browse files Browse the repository at this point in the history
2190: Try to fix moist gpu example r=charleskawczynski a=charleskawczynski

This PR fixes the next breaking piece, blocking us from #1980. Closes #2191.

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
  • Loading branch information
bors[bot] and charleskawczynski authored Oct 5, 2023
2 parents 3a80801 + 4a8921d commit 904aa59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/prognostic_equations/vertical_diffusion_boundary_layer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,14 @@ function vertical_diffusion_boundary_layer_tendency!(

FT = eltype(Y)
interior_uₕ = Fields.level(Y.c.uₕ, 1)
interior_coordinates = Fields.level(Fields.coordinate_field(Y.c), 1)
z_surface =
Fields.level(Fields.coordinate_field(Y.f).z[colidx], Fields.half)
ᶠp = ᶠρK_E = p.ᶠtemp_scalar
@. ᶠp[colidx] = ᶠinterp(ᶜp[colidx])
ᶜΔz_surface = Fields.Δz_field(interior_uₕ)
@. ᶠρK_E[colidx] =
ᶠinterp(Y.c.ρ[colidx]) * eddy_diffusivity_coefficient(
C_E,
norm(interior_uₕ[colidx]),
interior_coordinates.z[colidx] - z_surface,
ᶜΔz_surface[colidx] / 2,
ᶠp[colidx],
)

Expand Down

0 comments on commit 904aa59

Please sign in to comment.