Skip to content

Commit

Permalink
simpler masking
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Mar 9, 2024
1 parent cf1ad7b commit ca43714
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/internal_tide.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,8 @@ nothing #hide

using Oceananigans.ImmersedBoundaries: mask_immersed_field!

for n in 1:length(times)
mask_immersed_field!(u′_t[n], NaN)
mask_immersed_field!(w_t[n], NaN)
mask_immersed_field!(N²_t[n], NaN)
for φ_t in (u′_t, w_t, N²_t), n in 1:length(times)
mask_immersed_field!(φ_t[n], NaN)
end

# We retrieve each field's coordinates and convert from meters to kilometers.
Expand Down

0 comments on commit ca43714

Please sign in to comment.