Skip to content

Commit

Permalink
Speed up near global example (#262)
Browse files Browse the repository at this point in the history
* speed up

* Update near_global_ocean_simulation.jl

mostly to trigger docs built

* Update near_global_ocean_simulation.jl

mostly to trigger building the docs

* bump Oceananigans compat

---------

Co-authored-by: Navid C. Constantinou <[email protected]>
  • Loading branch information
simone-silvestri and navidcy authored Nov 23, 2024
1 parent 15c325f commit b5d3806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ OrthogonalSphericalShellGrids = "c2be9673-fb75-4747-82dc-aa2bb9f4aed0"
CairoMakie = "0.10.12, 0.11, 0.12"
DataDeps = "0.7"
Documenter = "1"
Oceananigans = "0.94"
Oceananigans = "0.94.3"
9 changes: 4 additions & 5 deletions examples/near_global_ocean_simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ClimaOcean.jl. The simulation covers latitudes from 75°S to 75°N with a horizontal
# resolution of 1/4 degree and 40 vertical levels.
#
# The simulation's results are visualized using the CairoMakie.jl package.
# The simulation's results are visualized with the CairoMakie.jl package.
#
# ## Initial setup with package imports
#
Expand All @@ -13,14 +13,13 @@
# These packages provide the foundational tools for setting up the simulation environment,
# including grid setup, physical processes modeling, and data visualization.

using Printf
using ClimaOcean
using Oceananigans
using Oceananigans.Units
using ClimaOcean
using CairoMakie

using CFTime
using Dates
using Printf

# ### Grid configuration
#
Expand Down Expand Up @@ -58,7 +57,7 @@ bottom_height = regrid_bathymetry(grid;
interpolation_passes = 5,
major_basins = 3)

grid = ImmersedBoundaryGrid(grid, GridFittedBottom(bottom_height))
grid = ImmersedBoundaryGrid(grid, GridFittedBottom(bottom_height); active_cells_map=true)

# Let's see what the bathymetry looks like:

Expand Down

0 comments on commit b5d3806

Please sign in to comment.