File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -284,15 +284,11 @@ end
284
284
function surface_velocity (ᶠu₃, ᶠuₕ³)
285
285
assert_eltype (ᶠu₃, Geometry. Covariant3Vector)
286
286
assert_eltype (ᶠuₕ³, Geometry. Contravariant3Vector)
287
+ ᶠlg = Fields. local_geometry_field (axes (ᶠu₃))
287
288
sfc_u₃ = Fields. level (ᶠu₃. components. data.:1 , half)
288
289
sfc_uₕ³ = Fields. level (ᶠuₕ³. components. data.:1 , half)
289
290
sfc_g³³ = g³³_field (sfc_u₃)
290
- w₃ = @. lazy (- sfc_uₕ³ / sfc_g³³) # u³ = uₕ³ + w³ = uₕ³ + w₃ * g³³
291
-
292
- # sfc_u₃ = Fields.level(ᶠu₃, half)
293
- # sfc_uₕ³ = Fields.level(ᶠuₕ³, half)
294
- # w₃ = @. lazy(-sfc_uₕ³ / sfc_u₃) # are metric terms automatically applied here?
295
-
291
+ w₃ = @. lazy (- C3 (sfc_uₕ³ / sfc_g³³, ᶠlg)) # u³ = uₕ³ + w³ = uₕ³ + w₃ * g³³
296
292
assert_eltype (w₃, Geometry. Covariant3Vector)
297
293
return w₃
298
294
end
You can’t perform that action at this time.
0 commit comments