Adaptive methods: Do not shrink delta when increasing stepsize

This commit is contained in:
Ian Jauslin 2023-05-16 18:08:48 -04:00
parent dacd5c3651
commit c9312c6d16

View File

@ -701,7 +701,7 @@ int ns_step_rkf45(
} }
} }
// next delta to use in future steps // next delta to use in future steps
*next_delta=factor*(*delta)*pow(relative*tolerance/err,0.2); *next_delta=(*delta)*pow(relative*tolerance/err,0.2);
} }
// error too big: repeat with smaller step // error too big: repeat with smaller step
else{ else{