Adaptive methods: Do not shrink delta when increasing stepsize
This commit is contained in:
parent
dacd5c3651
commit
c9312c6d16
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user