- removed milestone
FunctionAXPY should store Function as std::shared<Function> instead of Function*
Issue #688
resolved
When creating FunctionAXPY from python this creates a seg fault if the Function is not stored.
class MyClass:
def my_function(self):
f = Function(Q)
self.axpy = FunctionAXPY([1.0,f])
def my_other_function(self):
#this will seg fault unless you save f above with self._f = f
self.axpy.call_something_that_uses_pointer_to_stored_function()
Comments (4)
-
-
- changed milestone to 2016.2
-
assigned issue to
- marked as minor
-
- changed status to resolved
Issue solved for
FunctionAXPY
interface by 24ac0fa.For
FunctionAXPY Function::operator[+-*/]
the issue is unfixable in principle - one cannot pass in shared ptr version of this. -
The remaining part of the issue filed as
#727. - Log in to comment
Removing milestone: 1.7 (automated comment)