-
Notifications
You must be signed in to change notification settings - Fork 5
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
Disable spline potential #182
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #182 +/- ##
==========================================
- Coverage 92.83% 91.86% -0.98%
==========================================
Files 47 47
Lines 6785 6748 -37
Branches 762 758 -4
==========================================
- Hits 6299 6199 -100
- Misses 474 537 +63
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I was just surprised you can't use splines from numerical recipes.
@@ -1,8 +1,10 @@ | |||
! 1D user-defined numerical potential with cubic splines | |||
! Original code taken from QDYN | |||
! https://github.com/PHOTOX/qdyn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment, the cubic splines are not implemented in QDyn anymore. It's probably still in some of the old commits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know. What do you use instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use Python scripts to prepare the potential.
ABIN has an implementation of a numerical 1D potential on top of user-defined grid of points (
pot="_splined_grid_"
). We use cubic splines to interpolate between the points.Unfortunately, the cubic spline routines (originally taken from QDYN) are from Numerical recipes and we don't have license for them. Until we implement our own cubic spline, this commit remove the NR routines and disables the
_spline_
potential and associated tests.