Mercurial > repos > public > sbplib_julia
view AbstractGrid.jl @ 160:d33b13d2d92b boundary_conditions
Move things around in TensorMappings and improve the comments
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 10 May 2019 16:08:31 +0200 |
parents | 631eb9b35d72 |
children |
line wrap: on
line source
abstract type AbstractGrid end function dimension(grid::AbstractGrid) error("Not implemented for abstact type AbstractGrid") end function points(grid::AbstractGrid) error("Not implemented for abstact type AbstractGrid") end # Evaluate function f on the grid g function evalOn(g::AbstractGrid, f::Function) F(x) = f(x...) return F.(points(g)) end