view AbstractGrid.jl @ 145:e0c8f5cf3a3f boundary_conditions

Rename boundary indentifiers and use them inte the sat functions
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 25 Feb 2019 10:19:11 -0800
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