Skip to content

Commit

Permalink
Some fixes for Decapodes Docs (#196)
Browse files Browse the repository at this point in the history
* Some fixes for Decapodes Docs

Was still us SphericalMesh/Gridmeshes and packages were outdated. Add compats for various packages.

* Moved Point3D to shallow_ice
  • Loading branch information
GeorgeR227 authored Feb 2, 2024
1 parent f39547f commit dc5500c
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 272 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Catlab = "0.15, 0.16"
CombinatorialSpaces = "0.5, 0.6"
ComponentArrays = "0.15"
DataStructures = "0.18.13"
DiagrammaticEquations = "0.1.0"
DiagrammaticEquations = "0.1.1"
Distributions = "0.25"
FileIO = "1.16"
GeometryBasics = "0.4.2"
Expand Down
448 changes: 188 additions & 260 deletions docs/Manifest.toml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/src/grigoriev.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ To use this interpolating object `ice_interp`, we can simply query it for the va
Let's generate a triangulated grid located at the appropriate coordinates:

``` @example DEC
include("../../examples/grid_meshes.jl")
# Specify a resolution:
RES_Y = (MAX_Y-MIN_Y)/30.0
RES_X = RES_Y
Expand Down
1 change: 0 additions & 1 deletion docs/src/ice_dynamics.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ to_graphviz(ice_dynamics3)
# Define our mesh

``` @example DEC
include("../../examples/grid_meshes.jl")
s′ = triangulated_grid(10_000,10_000,800,800,Point3D)
s = EmbeddedDeltaDualComplex2D{Bool, Float64, Point3D}(s′)
subdivide_duals!(s, Barycenter())
Expand Down
1 change: 0 additions & 1 deletion examples/climate/nonhydrostatic_buoyancy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ resolve_overloads!(buoyancy)
to_graphviz(buoyancy)


include("../../grid_meshes.jl")
#s′ = loadmesh(Rectangle_30x10())
s′ = triangulated_grid(80,80, 10, 10, Point3D)
s = EmbeddedDeltaDualComplex2D{Bool, Float64, Point3D}(s′)
Expand Down
7 changes: 2 additions & 5 deletions examples/climate/shallow_ice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ using ComponentArrays
# Uncomment to load GLMakie if your system supports it.
# Otherwise, do using CairoMakie
#using GLMakie
using GeometryBasics: Point2
Point2D = Point2{Float64}
using GeometryBasics: Point3
Point3D = Point3{Float64}

####################
# Define the model #
Expand Down Expand Up @@ -85,9 +85,6 @@ to_graphviz(ice_dynamics3)
# Define the mesh #
###################

#include("../../grid_meshes.jl")
#include("../grid_meshes.jl")
include("../../examples/grid_meshes.jl")
s′ = triangulated_grid(10_000,10_000,800,800,Point3D)
s = EmbeddedDeltaDualComplex2D{Bool, Float64, Point3D}(s′)
subdivide_duals!(s, Barycenter())
Expand Down
1 change: 0 additions & 1 deletion examples/sw/pressure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ function generate(sd, my_symbol; hodge=GeometricHodge())
end

#include("coordinates.jl")
#include("spherical_meshes.jl")

radius = 6371+90

Expand Down
1 change: 0 additions & 1 deletion examples/sw/sw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ gensim(expand_operators(ddp), [:C])
f = eval(gensim(expand_operators(ddp), [:C]))

#include("coordinates.jl")
#include("spherical_meshes.jl")

const RADIUS = 6371+90
#primal_earth, npi, spi = makeSphere(0, 180, 5, 0, 360, 5, RADIUS);
Expand Down
1 change: 0 additions & 1 deletion examples/sw/sw_with_advection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ ddp = SummationDecapode(diffExpr)
gensim(expand_operators(ddp), [:C, :V])
f = eval(gensim(expand_operators(ddp), [:C, :V]))

#include("spherical_meshes.jl")
radius = 6371+90
#primal_earth, npi, spi = makeSphere(0, 180, 5, 0, 360, 5, radius);
#nploc = primal_earth[npi, :point]
Expand Down
1 change: 1 addition & 0 deletions src/coordinates.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using GeometryBasics
using CombinatorialSpaces.MeshInterop
# using LinearAlgebra

""" CartesianPoint{T}(p)
Expand Down

0 comments on commit dc5500c

Please sign in to comment.