-
Notifications
You must be signed in to change notification settings - Fork 134
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 ModuleIO::read/write_cube()
#5150
Conversation
@mohanchen this PR is ready for review, except precommit cannnot push format changes. |
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.
This PR refactors partially the cube io functions, separating the trilinear interpolation from the kernel function of read and write cube file. Additionally, the parameters lists are slightly modified, mainly in two aspects, drop the "&" behind "const int" and add const to pointers to array.
There should still be further refactor because there is still not a pure, clean function to do the only one thing that read or write cube file, hope some developer will so this later.
The PR seems to be the prerequisite of DFPT development for outputting Vxc on realspace grid.
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.
this PR can be merged with an issue submitted #5191.
Move some codes in
ModuleIO::read_cube()
andModuleIO::write_cube()
to new functionsModuleIO::read_cube_core_match()
,ModuleIO::read_cube_core_mismatch()
andModuleIO::write_cube_core()
.Refactor these functions.
For users, there is no change in input or output.