Skip to content

Commit

Permalink
Merge branch 'lr/ugrid' of github.com:PTsolvers/Chmy.jl into lr/ugrid
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Mar 5, 2024
2 parents c245349 + bca4cf7 commit d8d991a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Chmy"
uuid = "33a72cf0-4690-46d7-b987-06506c2248b9"
authors = ["Ivan Utkin <[email protected]>, Ludovic Raess <[email protected]>, and contributors"]
version = "0.2.0"
version = "0.1.1"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
4 changes: 2 additions & 2 deletions src/Grids/structured_grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ end
Return a tuple of grid spacing for a uniform grid `grid`.
"""
spacing(grid::UniformGrid) = getfield.(grid.axes, :spacing)
spacing(grid::UniformGrid, ::Dim{dim}) where {dim} = getfield.(grid.axes, :spacing)[dim]
spacing(grid::UniformGrid, ::Dim{dim}) where {dim} = grid.axes[dim].spacing

"""
inv_spacing(grid::UniformGrid)
Return a tuple of inverse grid spacing for a uniform grid `grid`.
"""
inv_spacing(grid::UniformGrid) = getfield.(grid.axes, :inv_spacing)
inv_spacing(grid::UniformGrid, ::Dim{dim}) where {dim} = getfield.(grid.axes, :inv_spacing)[dim]
inv_spacing(grid::UniformGrid, ::Dim{dim}) where {dim} = grid.axes[dim].inv_spacing

# coordinate lists

Expand Down

0 comments on commit d8d991a

Please sign in to comment.