From bdb7da64aa854015191509bfbd6dc2f223317db0 Mon Sep 17 00:00:00 2001 From: Stephan Hilb <stephan@ecshi.net> Date: Thu, 10 Feb 2022 09:04:44 +0100 Subject: [PATCH] stub cell function struct --- src/function.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/function.jl b/src/function.jl index 19865f6..cd03e9e 100644 --- a/src/function.jl +++ b/src/function.jl @@ -109,6 +109,12 @@ Base.show(io::IO, ::MIME"text/plain", f::FeFunction) = interpolate!(dst::FeFunction, expr::Function; params...) = interpolate!(dst, dst.space.element, expr; params...) +# stack-allocated cell-local function +# FIXME: unfinished, how to handle derivatives? +struct FeCellFunction{Fe, S, Ld} + data::Ld # ldof -> data +end + myvec(x) = vec(x) myvec(x::Number) = x -- GitLab