Mercurial > repos > public > sbplib_julia
view AbstractGrid.jl @ 150:4dc19757cada parallel_test
Minor cleanup.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 26 Feb 2019 11:27:04 +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