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

Refactor: better management of SphericalBesselTransformer #2981

Merged
merged 8 commits into from
Sep 25, 2023

Conversation

jinzx10
Copy link
Collaborator

@jinzx10 jinzx10 commented Sep 19, 2023

Previously SphericalBesselTransformer is handled by raw pointers within NumericalRadial/RadialSet/RadialCollection. In this PR, the class is redesigned into an opaque pointer where the detailed implementation are managed by shared pointer. This should make the code easier to maintain and less error-prone for future developers.

@jinzx10 jinzx10 marked this pull request as draft September 20, 2023 06:33
@jinzx10 jinzx10 marked this pull request as ready for review September 20, 2023 12:43
@dyzheng
Copy link
Collaborator

dyzheng commented Sep 21, 2023

In ABACUS, "ModuleBase::Memory::record(string, size)" is used to record memory, how to record memory of module_nao now?

@hongriTianqi hongriTianqi merged commit b3f9b3e into deepmodeling:develop Sep 25, 2023
11 checks passed
@jinzx10 jinzx10 deleted the shared_ptr_sbt branch September 25, 2023 06:20
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.

None yet

4 participants