@@ -30,13 +30,11 @@ import ClimaCore.MatrixFields
3030import ClimaCore. Spaces
3131import ClimaCore. Fields
3232
33- Operators. fd_shmem_is_supported (bc:: Base.Broadcast.Broadcasted ) = false
34- ClimaCore. Operators. use_fd_shmem () = false
33+ # Operators.fd_shmem_is_supported(bc::Base.Broadcast.Broadcasted) = false
34+ # ClimaCore.Operators.use_fd_shmem() = false
3535# The existing implementation limits our ability to apply
3636# the same expressions from within kernels
37- ClimaComms. device (topology:: Topologies.DeviceIntervalTopology ) =
38- ClimaComms. CUDADevice ()
39- Fields. error_mismatched_spaces (:: Type , :: Type ) = nothing # causes unsupported dynamic function invocation
37+ # Fields.error_mismatched_spaces(::Type, ::Type) = nothing # causes unsupported dynamic function invocation
4038
4139const C1 = Geometry. Covariant1Vector
4240const C2 = Geometry. Covariant2Vector
@@ -91,12 +89,14 @@ Base.Broadcast.broadcastable(x::RayleighSponge) = tuple(x)
9189
9290function rayleigh_sponge_tendency_uₕ (ᶜuₕ, s)
9391 s isa Nothing && return NullBroadcasted ()
94- (; ᶜz, ᶠz) = z_coordinate_fields (axes (ᶜuₕ))
95- zmax = z_max (axes (ᶠz))
92+ ᶜz = Fields. coordinate_field (axes (ᶜuₕ)). z
93+ ᶠz = Fields. coordinate_field (Spaces. face_space (axes (ᶜuₕ))). z
94+ # (; ᶜz, ᶠz) = z_coordinate_fields(axes(ᶜuₕ))
95+ zmax = Spaces. z_max (axes (ᶠz))
9696 return @. lazy (- β_rayleigh_uₕ (s, ᶜz, zmax) * ᶜuₕ)
9797end
9898
99- function compute_kinetic (uₕ:: Fields.Field , uᵥ:: Fields.Field )
99+ function compute_kinetic (uₕ, uᵥ)
100100 @assert eltype (uₕ) <: Union{C1, C2, C12}
101101 @assert eltype (uᵥ) <: C3
102102 FT = Spaces. undertype (axes (uₕ))
@@ -167,9 +167,9 @@ function ᶜimplicit_tendency_bc(ᶜY, ᶠY, p, t)
167167 ᶠu³ = @. lazy (ᶠuₕ³ + CT3 (ᶠu₃))
168168 tend_ρ_1 = @. lazy (ᶜdivᵥ (ᶠwinterp (ᶜJ, ᶜρ) * ᶠuₕ³))
169169 tend_ρe_tot_1 = vertical_transport (ᶜρ, ᶠu³, ᶜh_tot, dt, Val (:none ))
170- ᶜuₕ₀ = ( zero ( eltype ( ᶜuₕ)), )
170+ ᶜuₕ₀ = rayleigh_sponge_tendency_uₕ ( ᶜuₕ, rayleigh_sponge )
171171
172- return @. lazy (ᶜtendencies (- tend_ρ_1, - ᶜuₕ₀, tend_ρe_tot_1))
172+ return @. lazy (ᶜtendencies (- tend_ρ_1, ᶜuₕ₀, tend_ρe_tot_1))
173173end
174174
175175function ᶠimplicit_tendency_bc (ᶜY, ᶠY, p, t)
0 commit comments