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

Clean up around BsplineAllocator.hpp and MultiSpline.hpp #5195

Merged
merged 5 commits into from
Oct 7, 2024

Conversation

ye-luo
Copy link
Contributor

@ye-luo ye-luo commented Oct 7, 2024

Proposed changes

  1. reduce MultiSpline::create_spline template parameters
  2. Make MultiSpline::copy_spline a free function.

What type(s) of changes does this code introduce?

  • Other (please describe): code refactoring.

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

epyc-server

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'
  • Yes. Code added or changed in the PR has been clang-formatted

@ye-luo
Copy link
Contributor Author

ye-luo commented Oct 7, 2024

Test this please

@ye-luo
Copy link
Contributor Author

ye-luo commented Oct 7, 2024

Test this please

Copy link
Contributor

@PDoakORNL PDoakORNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This basically looks good to me, in that it improves the existing c code. I think that from a compilation standpoint copy_spline MSDT & SSDT type mixing is more open than the member function copies, if their are constraints those should be documented and perhaps handled at compile time.

@ye-luo
Copy link
Contributor Author

ye-luo commented Oct 7, 2024

Actually I still need to relocate copy_splines. Is that OK if I add "MSDT & SSDT" constraints in my next PR? I will add static_assert making sure they are float types.

@ye-luo
Copy link
Contributor Author

ye-luo commented Oct 7, 2024

Test this please

@ye-luo ye-luo enabled auto-merge October 7, 2024 21:27
@ye-luo ye-luo merged commit bc09259 into QMCPACK:develop Oct 7, 2024
38 of 39 checks passed
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