Skip to content

Improve speed of CylSplinePotential #301

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

Open
adrn opened this issue Jul 4, 2022 · 0 comments
Open

Improve speed of CylSplinePotential #301

adrn opened this issue Jul 4, 2022 · 0 comments

Comments

@adrn
Copy link
Owner

adrn commented Jul 4, 2022

Right now it is very slow because it must construct a spline object with the input grids each time the energy/gradient/density functions are called. It might be possible to store this object on the Wrapper class and pass a pointer in to C. To do this, we need to add functionality to the potential classes (actually the struct types) to support having an array of pointers that get passed around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant