Skip to content

Commit

Permalink
fix space for LevelGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Oct 28, 2023
1 parent d8f0afb commit 9e15a8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Spaces/spectralelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ struct SpectralElementSpace1D{G} <: AbstractSpectralElementSpace
end
space(grid::Grids.SpectralElementGrid1D, ::Nothing) =
SpectralElementSpace1D(grid)
space(
grid::Grids.LevelGrid{<:Grids.ExtrudedFiniteDifferenceField2D},
::Nothing,
) = SpectralElementSpace1D(grid)
grid(space::Spaces.SpectralElementSpace1D) = getfield(space, :grid)

function SpectralElementSpace1D(
Expand Down Expand Up @@ -98,6 +102,11 @@ struct SpectralElementSpace2D{G} <: AbstractSpectralElementSpace
end
space(grid::Grids.SpectralElementGrid2D, ::Nothing) =
SpectralElementSpace2D(grid)
space(
grid::Grids.LevelGrid{<:Grids.ExtrudedFiniteDifferenceField3D},
::Nothing,
) = SpectralElementSpace2D(grid)

grid(space::Spaces.SpectralElementSpace2D) = getfield(space, :grid)

function SpectralElementSpace2D(
Expand Down

0 comments on commit 9e15a8f

Please sign in to comment.