Skip to content

Commit

Permalink
point space support
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jul 26, 2024
1 parent cec368e commit b492dc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MatrixFields/matrix_shape.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ matrix_shape(matrix_field, matrix_space) = _matrix_shape(
matrix_space.staggering,
)

function matrix_shape(matrix_field, matrix_space::Spaces.AbstractSpectralElementSpace)
function matrix_shape(matrix_field, matrix_space::Union{Spaces.AbstractSpectralElementSpace, Spaces.PointSpace})
@assert eltype(matrix_field) <: DiagonalMatrixRow
Square()
end


_matrix_shape(::Type{Int}, _) = Square()
_matrix_shape(::Type{PlusHalf{Int}}, ::Spaces.CellCenter) = FaceToCenter()
_matrix_shape(::Type{PlusHalf{Int}}, ::Spaces.CellFace) = CenterToFace()
Expand Down

0 comments on commit b492dc4

Please sign in to comment.