Skip to content

Commit

Permalink
Merge pull request #1168 from CliMA/ncc/fix-2dturb-example
Browse files Browse the repository at this point in the history
Fix erroneous double hashes in two_dimensional_turbulence.jl example
  • Loading branch information
navidcy committed Nov 11, 2020
2 parents bd6cb93 + a580bee commit 03a6f85
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/two_dimensional_turbulence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ set!(model, u=u₀, v=u₀)

using Oceananigans.Fields, Oceananigans.AbstractOperations

## To make our equations prettier, we unpack `u`, `v`, and `w` from
## the `NamedTuple` model.velocities:
# To make our equations prettier, we unpack `u`, `v`, and `w` from
# the `NamedTuple` model.velocities:
u, v, w = model.velocities

# Next we create two objects called `ComputedField`s that calculate
# _(i)_ vorticity, defined as
# _(i)_ vorticity that measures the rate at which the fluid rotates
# and is defined as
#
# ```math
# ω = ∂_x v - ∂_y u \, ,
Expand All @@ -56,7 +57,6 @@ u, v, w = model.velocities

ω_field = ComputedField(ω)

# "Vorticity" measures the rate at which the fluid rotates.
# We also calculate _(ii)_ the _speed_ of the flow,
#
# ```math
Expand Down Expand Up @@ -107,8 +107,9 @@ using Oceananigans.Grids

xω, yω, zω = nodes(ω_field)
xs, ys, zs = nodes(s_field)
nothing # hide

# and animate the vorticity.
# and animate the vorticity and fluid speed.

using Plots

Expand Down

0 comments on commit 03a6f85

Please sign in to comment.