Skip to content
Snippets Groups Projects
Commit 4dc8ceff authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[functions.grid-function] add scalar ctor

parent 37130671
No related branches found
No related tags found
1 merge request!20Update bindings
......@@ -307,6 +307,11 @@ public:
, storage_(new FunctionAsGridFunctionWrapper<E, 1, 1, R>(new ConstantFunction<d, 1, 1, R>(value)))
{}
GridFunction(const FieldMatrix<R, 1, 1>& value) // <- Must not be XT::Common::FieldMatrix!
: BaseType()
, storage_(new FunctionAsGridFunctionWrapper<E, 1, 1, R>(new ConstantFunction<d, 1, 1, R>(value[0][0])))
{}
GridFunction(const FunctionInterface<d, 1, 1, R>& func)
: BaseType()
, storage_(new FunctionAsGridFunctionWrapper<E, 1, 1, R>(func))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment