Copying LocalFunctions of DiscreteGlobalBasisFunctions
Copying a LocalFunction
of a DiscreteGlobalBasisFunction
will give an object that might lead to segmentation faults when used. This happens e.g. if one is creating a FunctionFromCallable
of such an LocalFunction
, as the FunctionFromCallable
header makes copies if the function is provided as an lvalue.
I have attached a test file that triggers a seg' fault dfb.cc.