Closed sunethwarna closed 2 weeks ago
Hard to say anything with 0 context. I'm looking for GetBoundaryConditions but I cant find it in the filter bindings.
If I had to guess, and assuming GetBoundaryConditions returns an std::vector, I'd say the vector gets returned by value (which means a copy) and then immediately gets destroyed (because it's not assigned to anything).
Preventing this is usually the job of pybind::keep_alive.
📝 Description For some reason the optapp seg faults if this is not done like in this fix for some cases. @roigcarlo @matekelemen any ideas?
Following is the traceback which is showing some type casting problem from the pybind. My guess is, since it is vector of
ModelPart*
, it cannot deduce how to handle thereturn_value_policy
,🆕 Changelog