Mercurial > repos > public > sbplib_julia
view AbstractGrid.jl @ 136:c6aaf061c0a9 cell_based_test
Fix incorrect indexing of solution vector in apply_region_tiled
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 21 Feb 2019 16:46:01 +0100 |
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