Skip to content

Commit

Permalink
modified: src/prognostic_equations/vertical_diffusion_boundary_layer.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysridhar committed Nov 17, 2023
1 parent fe3941d commit b4ee76f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prognostic_equations/vertical_diffusion_boundary_layer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ function vertical_diffusion_boundary_layer_tendency!(
@. θ_v[colidx] = TD.virtual_pottemp(thermo_params, ᶜts[colidx])
θ_a = Fields.level(θ_v[colidx], 1)
@. θ_v_sfc[colidx] = TD.virtual_pottemp(thermo_params, ᶠts_sfc[colidx])

ᶜΔz_surface = Fields.Δz_field(interior_uₕ)

# TODO: Cache elevation field?
Expand All @@ -178,6 +179,7 @@ function vertical_diffusion_boundary_layer_tendency!(
grav,
dz_local[colidx],
)

@. Ri_a[colidx] = compute_bulk_richardson_number(
θ_a[colidx],
θ_v_sfc[colidx][],
Expand Down

0 comments on commit b4ee76f

Please sign in to comment.