Mercurial > repos > public > sbplib_julia
view Grids/src/Grids.jl @ 325:41c3c25e4e3b
LazyTensors: Simplify the LazyElementwiseOperation type by restricting it and introducing a LazyConstantArray to handle scalars.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 24 Sep 2020 22:31:04 +0200 |
parents | 7d2ad8a73b1f |
children |
line wrap: on
line source
module Grids using 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") end # module