Skip to content

Commit

Permalink
fixed example and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchor committed Dec 19, 2024
1 parent af7e5c2 commit e7f88ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Oceanostics"
uuid = "d0ccf422-c8fb-49b5-a76d-74acdde946ac"
authors = ["tomchor <[email protected]>"]
version = "0.14.6"
version = "0.15.0"

[deps]
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand Down
7 changes: 4 additions & 3 deletions docs/examples/tilted_bottom_boundary_layer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ simulation.callbacks[:progress] = Callback(progress, IterationInterval(400))

using Oceanostics

Ri = RichardsonNumber(model, add_background=true)
b = model.tracers.b + model.background_fields.tracers.b
Ri = RichardsonNumber(model, model.velocities..., b)
Ro = RossbyNumber(model)
PV = ErtelPotentialVorticity(model, add_background=true)
PV = ErtelPotentialVorticity(model, model.velocities..., b, model.coriolis)

# Note that the calculation of these quantities depends on the alignment with the true (geophysical)
# vertical and the rotation axis. Oceanostics already takes that into consideration by using
Expand All @@ -159,7 +160,7 @@ PV = ErtelPotentialVorticity(model, add_background=true)
#
# Now we write these quantities to a NetCDF file:

output_fields = (; Ri, Ro, PV, b = model.tracers.b + model.background_fields.tracers.b)
output_fields = (; Ri, Ro, PV, b)

filename = "tilted_bottom_boundary_layer"
simulation.output_writers[:nc] = NetCDFOutputWriter(model, output_fields,
Expand Down

0 comments on commit e7f88ba

Please sign in to comment.