Skip to content

Commit aa95d03

Browse files
Merge pull request #1848 from CliMA/ck/convenience_constructors
Add convenience constructors for grids
2 parents 99132e0 + b217d88 commit aa95d03

File tree

7 files changed

+926
-0
lines changed

7 files changed

+926
-0
lines changed

NEWS.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ ClimaCore.jl Release Notes
44
main
55
-------
66

7+
- We've added new convenience constructors for grids PR [1848](https://github.com/CliMA/ClimaCore.jl/pull/1848). Here are links to the new constructors:
8+
- [ExtrudedCubedSphereGrid]()
9+
- [CubedSphereGrid]()
10+
- [ColumnGrid]()
11+
- [Box3DGrid]()
12+
- [SliceXZGrid]()
13+
- [RectangleXYGrid]()
14+
715
- A `strict = true` keyword was added to `rcompare`, which checks that the types match. If `strict = false`, then `rcompare` will return `true` for `FieldVector`s and `NamedTuple`s with the same properties but permuted order. For example:
816
- `rcompare((;a=1,b=2), (;b=2,a=1); strict = true)` will return `false` and
917
- `rcompare((;a=1,b=2), (;b=2,a=1); strict = false)` will return `true`

docs/src/api.md

+34
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ DataLayouts.VIJHF
4040

4141
## Geometry
4242

43+
### Global Geometry
44+
```@docs
45+
Geometry.AbstractGlobalGeometry
46+
Geometry.CartesianGlobalGeometry
47+
```
48+
4349
### Coordinates
4450
```@docs
4551
Geometry.AbstractPoint
@@ -171,6 +177,34 @@ Topologies.local_neighboring_elements
171177
Topologies.ghost_neighboring_elements
172178
```
173179

180+
## Grids
181+
182+
```@docs
183+
Grids.ColumnGrid
184+
Grids.FiniteDifferenceGrid
185+
Grids.ExtrudedFiniteDifferenceGrid
186+
Grids.SpectralElementGrid1D
187+
Grids.SpectralElementGrid2D
188+
```
189+
190+
## Hypsography
191+
192+
```@docs
193+
Grids.Flat
194+
```
195+
196+
## CommonGrids
197+
198+
```@docs
199+
CommonGrids
200+
CommonGrids.ExtrudedCubedSphereGrid
201+
CommonGrids.CubedSphereGrid
202+
CommonGrids.ColumnGrid
203+
CommonGrids.Box3DGrid
204+
CommonGrids.SliceXZGrid
205+
CommonGrids.RectangleXYGrid
206+
```
207+
174208
## Spaces
175209
A `Space` represents a discretized function space over some domain.
176210
Currently two main discretizations are supported: Spectral Element Discretization

src/ClimaCore.jl

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ include("Hypsography/Hypsography.jl")
2323
include("Limiters/Limiters.jl")
2424
include("InputOutput/InputOutput.jl")
2525
include("Remapping/Remapping.jl")
26+
include("CommonGrids/CommonGrids.jl")
2627

2728
include("deprecated.jl")
2829

0 commit comments

Comments
 (0)