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

[function-or-gridfunction] minor fixes

parent c191cf42
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ public: ...@@ -94,7 +94,7 @@ public:
using BaseType::rC; using BaseType::rC;
using typename BaseType::LocalFunctionType; using typename BaseType::LocalFunctionType;
FunctionOrGridFunction(const typename FunctionInterface<d, 1, 1, R>::RangeReturnType& value) FunctionOrGridFunction(const R& value)
: storage_(make_product(new FunctionAsGridFunctionWrapper<E, 1, 1, R>(new ConstantFunction<d, 1, 1, R>(value)), : storage_(make_product(new FunctionAsGridFunctionWrapper<E, 1, 1, R>(new ConstantFunction<d, 1, 1, R>(value)),
unit_matrix())) unit_matrix()))
{} {}
...@@ -121,7 +121,7 @@ public: ...@@ -121,7 +121,7 @@ public:
{} {}
FunctionOrGridFunction(const GridFunctionInterface<E, 1, 1, R>& func) FunctionOrGridFunction(const GridFunctionInterface<E, 1, 1, R>& func)
: storage_(make_product(func, std::move(unit_matrix()))) : storage_(make_product(new FunctionOrGridFunction<E, 1, 1, R>(func), std::move(unit_matrix())))
{} {}
FunctionOrGridFunction(GridFunctionInterface<E, 1, 1, R>*&& func_ptr) FunctionOrGridFunction(GridFunctionInterface<E, 1, 1, R>*&& func_ptr)
......
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