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

Disable spline potential #182

Merged
merged 4 commits into from
Oct 26, 2024
Merged

Disable spline potential #182

merged 4 commits into from
Oct 26, 2024

Conversation

danielhollas
Copy link
Contributor

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.

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 91.86%. Comparing base (0a5d9f3) to head (218ffd1).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/force_spline.F90 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            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              
Flag Coverage Δ
unittests 20.41% <0.00%> (-1.46%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/force_spline.F90 0.00% <0.00%> (-93.27%) ⬇️

... and 2 files with indirect coverage changes

Copy link
Contributor

@JanosJiri JanosJiri left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

@danielhollas danielhollas merged commit 6d01fab into master Oct 26, 2024
17 of 19 checks passed
@danielhollas danielhollas deleted the remove-splines branch October 26, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants