-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow manual activation of log during simulation for debugging #13
Comments
Looking at the code, it seems that we just need to add a version of |
Yeah, you can totally |
Ah. Well, at least with a simple forward integration scheme it should work. Do you think maybe |
I think really only Euler's method will work this way (and you definitely don't want that). Most other methods will make multiple function calls per time increment. |
I actually often have to use Euler's method.... phase change sucks :( It's surprisingly often faster in my application domain than most other solvers!
Isn't that usually what we want? |
I think it would be useful to allow the user to choose to manually activate the global log before calling
solve
in order to collect the logged values at every solver time step.Of course this adds the performance overhead of logging, but for debugging purposes, that's totally fine.
It would also provide a workaround for use cases (like one of mine) when the model slightly violates temporal continuity by implicitly relying on "logged" values from the previous time step.
The text was updated successfully, but these errors were encountered: