view src/Grids/Grids.jl @ 638:08b2c7a2d063 feature/volume_and_boundary_operators

Implement the Quadrature operator as a VolumeOperator. Make DiagonalQuadrature a special case of the general Quadrature operator. Update tests.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Mon, 04 Jan 2021 09:32:11 +0100
parents 212e266043dd
children f0ceddeae993
line wrap: on
line source

module Grids

using Sbplib.RegionIndices

export BoundaryIdentifier, CartesianBoundary

abstract type BoundaryIdentifier end
struct CartesianBoundary{Dim, R<:Region} <: BoundaryIdentifier end
dim(::CartesianBoundary{Dim, R}) where {Dim, R} = Dim
region(::CartesianBoundary{Dim, R}) where {Dim, R} = R()

export dim, region

include("AbstractGrid.jl")
include("EquidistantGrid.jl")

# TODO: Rename AbstractGrid to Grid and move definition here.

end # module