Skip to content

Commit

Permalink
Zero out the surface momentum flux initially
Browse files Browse the repository at this point in the history
  • Loading branch information
glwagner authored and Sbozzolo committed Feb 27, 2025
1 parent 9dbc541 commit 6c58297
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/surface_conditions/SurfaceConditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ..get_wstar

import ClimaCore: DataLayouts, Geometry, Fields
import ClimaCore.Geometry:
import ClimaCore.Utilities: half
import SurfaceFluxes as SF
import Thermodynamics as TD

Expand Down
7 changes: 7 additions & 0 deletions src/surface_conditions/surface_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ function set_dummy_surface_conditions!(p)
@. sfc_conditions.ρ_flux_q_tot = C3(FT(0))
end
@. sfc_conditions.ρ_flux_h_tot = C3(FT(0))

# Zero out the surface momentum flux
c = p.scratch.ᶠtemp_scalar
# elsewhere known as 𝒢
sfc_local_geometry = Fields.level(Fields.local_geometry_field(c), half)
@. sfc_conditions.ρ_flux_uₕ =
tensor_from_components(0, 0, sfc_local_geometry)
end

"""
Expand Down

0 comments on commit 6c58297

Please sign in to comment.