Skip to content

Commit d96c32b

Browse files
merged
2 parents ef45d0c + 4b4f64e commit d96c32b

22 files changed

+777
-27
lines changed

.buildkite/examples_build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
env:
3-
JULIA_VERSION: "1.10.9"
3+
JULIA_VERSION: "1.10.10"
44
JULIA_MINOR_VERSION: "1.10"
55
TARTARUS_HOME: "/storage5/buildkite-agent"
66
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
@@ -18,7 +18,7 @@ steps:
1818
TMPDIR: "$TARTARUS_HOME/tmp"
1919
command:
2020
- "echo '--- Instantiate project'"
21-
- "$TARTARUS_HOME/julia-$JULIA_VERSION/bin/julia --color=yes -O0 --project -e 'using Pkg; Pkg.instantiate(; verbose=true); Pkg.precompile(; strict=true)'"
21+
- "$TARTARUS_HOME/julia-$JULIA_VERSION/bin/julia --color=yes -O0 --project -e 'using Pkg; Pkg.add(url=\"https://github.com/CliMA/Oceananigans.jl\", rev=\"ss/fix-zstar-bc\"); Pkg.instantiate(; verbose=true); Pkg.precompile(; strict=true)'"
2222
# force the initialization of the CUDA runtime as it is lazily loaded by default
2323
- "$TARTARUS_HOME/julia-$JULIA_VERSION/bin/julia --color=yes -O0 --project -e 'using CUDA; CUDA.precompile_runtime()'"
2424
agents:
@@ -29,7 +29,7 @@ steps:
2929
- label: "Run documentation"
3030
key: "build_documentation"
3131
commands:
32-
- "$TARTARUS_HOME/julia-$JULIA_VERSION/bin/julia --color=yes -O0 --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'"
32+
- "$TARTARUS_HOME/julia-$JULIA_VERSION/bin/julia --color=yes -O0 --project=docs/ -e 'using Pkg; Pkg.add(url=\"https://github.com/CliMA/Oceananigans.jl\", rev=\"ss/fix-zstar-bc\"); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile(; strict=true)'"
3333
- "$TARTARUS_HOME/julia-$JULIA_VERSION/bin/julia --color=yes -O0 --project=docs/ docs/make.jl"
3434
agents:
3535
queue: ClimaOcean-docs
@@ -38,10 +38,10 @@ steps:
3838
TMPDIR: "$TARTARUS_HOME/tmp"
3939
JULIA_DEPOT_PATH: "$TARTARUS_HOME/.julia-$BUILDKITE_BUILD_NUMBER"
4040
JULIA_DEBUG: "Documenter"
41-
# This environment variable is needed to avoid SSL verification errors when Downloads.jl
41+
# This environment variable is needed to avoid SSL verification errors when Downloads.jl
4242
# tries to download the bathymetry data. It should not be required so we need to fix our certificates
4343
# and remove this environment variable. ref: https://github.com/JuliaLang/Downloads.jl/issues/97
44-
JULIA_SSL_NO_VERIFY: "**"
44+
JULIA_SSL_NO_VERIFY: "**"
4545

4646
timeout_in_minutes: 1440
4747

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "ClimaOcean"
22
uuid = "0376089a-ecfe-4b0e-a64f-9c555d74d754"
33
license = "MIT"
44
authors = ["Climate Modeling Alliance and contributors"]
5-
version = "0.7.1"
5+
version = "0.7.2"
66

77
[deps]
88
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ To illustrate how `OceanSeaIceModel` works we set up a simulation on a grid with
4444
using Oceananigans
4545
using Oceananigans.Units
4646
using Dates
47+
using CUDA
4748
import ClimaOcean
4849

4950
arch = GPU()

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[deps]
22
CFTime = "179af706-886a-5703-950a-314cd64e0468"
3+
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
34
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
4-
ClimaOcean = "0376089a-ecfe-4b0e-a64f-9c555d74d754"
55
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe"
66
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
77
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"

docs/interface_fluxes.md

Lines changed: 713 additions & 0 deletions
Large diffs are not rendered by default.

docs/make.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ using
44
DocumenterCitations,
55
Literate
66

7+
# temporary to enforce Oceananigans to use a specific branch
8+
using Pkg
9+
Pkg.add(PackageSpec(
10+
name = "Oceananigans",
11+
url = "https://github.com/CliMA/Oceananigans.jl",
12+
rev = "ss/fix-zstar-bc"
13+
))
14+
Pkg.resolve()
15+
@show Pkg.status()
16+
717
ENV["DATADEPS_ALWAYS_ACCEPT"] = "true"
818

919
bib_filepath = joinpath(dirname(@__FILE__), "climaocean.bib")
@@ -48,7 +58,7 @@ pages = [
4858

4959
"Vertical grids" => "vertical_grids.md",
5060

51-
# "Interface fluxes" => "interface_fluxes.md",
61+
"Interface fluxes" => "interface_fluxes.md",
5262

5363
"Library" => [
5464
"Contents" => "library/outline.md",

docs/src/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ The following script implements a near-global ocean simulation initialized from
3838
using Oceananigans
3939
using Oceananigans.Units
4040
using Dates
41+
using CUDA
42+
4143
import ClimaOcean
4244

4345
arch = GPU()

examples/ecco_mixed_layer_depth.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fig
7171

7272
# And record a movie
7373

74-
record(fig, "ecco_mld.mp4", 1:Nt-1, framerate=4) do nn
74+
CairoMakie.record(fig, "ecco_mld.mp4", 1:Nt-1, framerate=4) do nn
7575
@info "Drawing frame $nn of $Nt..."
7676
n[] = nn
7777
end

examples/inspect_JRA55_data.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ snapshot_interval = 3hours # JRE55 time-resolution
7272
rotation_period = 60days
7373
rotation_rate = 2π / rotation_period
7474

75-
record(fig, "JRA55_data.mp4", 1:Nt, framerate=16) do nn
75+
CairoMakie.record(fig, "JRA55_data.mp4", 1:Nt, framerate=16) do nn
7676
@info nn/Nt
7777

7878
n[] = nn

examples/near_global_ocean_simulation.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ using CairoMakie
2020
using CFTime
2121
using Dates
2222
using Printf
23+
using CUDA
2324

2425
# ### Grid configuration
2526
#
@@ -36,6 +37,7 @@ Nz = 40
3637

3738
depth = 6000meters
3839
z = ExponentialCoordinate(Nz, -depth)
40+
z = Oceananigans.Grids.MutableVerticalDiscretization(z)
3941

4042
grid = LatitudeLongitudeGrid(arch;
4143
size = (Nx, Ny, Nz),
@@ -250,7 +252,7 @@ nothing #hide
250252

251253
# And now we make a movie:
252254

253-
record(fig, "near_global_ocean_surface.mp4", 1:Nt, framerate = 8) do nn
255+
CairoMakie.record(fig, "near_global_ocean_surface.mp4", 1:Nt, framerate = 8) do nn
254256
n[] = nn
255257
end
256258
nothing #hide

0 commit comments

Comments
 (0)