Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Odeint with in-house Runge-Kutta 4th order #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robertodr
Copy link
Member

@robertodr robertodr commented Apr 23, 2019

Copy work from PCMSolver/pcmsolver#138 See also previous discussion there.

Description

This PR removes the dependency on Odeint by providing code for a Runge-Kutta 4th order integrator.
In addition, the code for handling the radial solutions and some of the internals of the SphericalDiffuse class have been significantly simplified.

How Has This Been Tested?

All unit tests but one pass. green_spherical_diffuse, which checks the value of the Green's function. However, the tests on boundary integral operators and IEF pass without any tweak. It seems to me some loss of accuracy happens with the new integrator, but I cannot see how that could happen given that the Butcher tableau used by Odeint is the same as mine.

Todos

  • Dropped dependency on Boost.Odeint

Questions

  • @ilfreddy please have a look and make sure it's fine to update the reference values for the Green's function tests.

Status

  • Ready to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants