Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implementation of a specialized
dense_output
(6th order Hermite-Interpolation) forFineRKN5
derived in https://doi.org/10.1007/BF02307711 (for ref. view #677).As shown in the convergence plots below, the Interpolation works fine (for
In-Place
ODEs, more on that below) and thedense_error
is reduced significantly compared to the standard 3rd order Hermite-Interpolation:In-Place (i) and Out-of-Place (o) convergence tests with and without dense error for the harmonic oscillator using the new dense output:
In-Place (i) and Out-of-Place (o) convergence tests with and without dense error for the harmonic oscillator using the standard dense output:
However testing the convergence with the new dense output for ODEs dependent on the first derivative (velocity dependent) results in breaking the
Out-of-Place
implementation in the sense, that the convergence worsen compared to theIn-Place
implementation. The difference can be seen in the plots below:In-Place (i) and Out-of-Place (o) convergence tests with and without dense error for the damped oscillator using the new dense output:
I can not find the mistake in my
Out-of-Place
implementation.Looking at the plots I am certain the mistake is not related to the coefficients since both implementations share the same ones and the In-Place on works regardless.
Any help is appreciated!
The code used for the convergence tests and plots is attached and can directly be pasted in the REPL for easy testing and replication of my results.
FineRKN5convergenceTests.txt
@ranocha