I was trying to turn off stiffness detection and just let the solver use lots of tiny steps when necessary. I was thus going to set n_stiff to u32::MAX. However, even after doing this I found that IntegrationError::StiffnessDetected could still be returned. I traced it to this line in both dop853.rs and dopri5.rs -- shouldn't it be self.stats.accepted_steps % self.n_stiff == 0 instead?
if (self.stats.accepted_steps % self.n_stiff != 0) || iasti > 0 {
Hello -- thanks for providing this package!
I was trying to turn off stiffness detection and just let the solver use lots of tiny steps when necessary. I was thus going to set
n_stiff
tou32::MAX
. However, even after doing this I found thatIntegrationError::StiffnessDetected
could still be returned. I traced it to this line in bothdop853.rs
anddopri5.rs
-- shouldn't it beself.stats.accepted_steps % self.n_stiff == 0
instead?