-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StackOverFlowError with two usages of save_func #548
Comments
You need a: using ArrayInterface
ArrayInterface.ismutable(::Type{Model}) = true This is a tricky one, since it doesn't know whether your |
Thanks, this fixed the issue. Can you give additional information in order that I understand in which situations the above approach needs to be used? Is this information necessary for the parameter "p" data structure but not for all the potential structs that might be used inside "p"? I am also a bit confused because "p" seems to be treated as an array, although it is actually a struct. I wonder whether there is a simpler way? Is there an abstract mutable type in ArrayInterfaces and it would be fine to define something like:
|
This is a very hard problem. For your |
Here is an ODE test problem:
Test_ode_save_func_callback.zip
with the essential statements:
When
solve
is called once and then at the second call without the callback, everything is fine. However, when the above two calls ofsolve
are called with the callback cb1, then the following error occurs:This seems to be a bug related to the callback handling
The text was updated successfully, but these errors were encountered: