TimeStepWizard #2490
-
Hello everyone! I am trying to do a simulation with an adaptive time step, below is my code:
The initial
What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I think This is interesting though --- I kind of like the idea that "max change" is a small positive number (rather than being a number slightly greater than 1). We could change the API so your code works. It might be more intuitive. @navidcy @tomchor what do you think about that? Otherwise we should definitely throw an error if |
Beta Was this translation helpful? Give feedback.
-
tricky one :) Perhaps At the moment, if we have |
Beta Was this translation helpful? Give feedback.
I think
max_change
has to be great than 1! Basically you wantmax_change = 1 + 1e-2
.This is interesting though --- I kind of like the idea that "max change" is a small positive number (rather than being a number slightly greater than 1). We could change the API so your code works. It might be more intuitive.
@navidcy @tomchor what do you think about that?
Otherwise we should definitely throw an error if
max_change < 1
.