view AbstractGrid.jl @ 177:87747870441e boundary_conditions

Steal Vidars changes from 24779d423243 that make TensorMappings.jl compile
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 17 Jun 2019 09:43:35 +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