-
Notifications
You must be signed in to change notification settings - Fork 145
Feature: add ModuleIO::write_libxc_r() #5232
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
Conversation
…ce XC_Functional_Libxc
Conflicts: source/module_esolver/esolver_fp.cpp source/module_hamilt_general/module_xc/xc_functional_gradcorr.cpp source/module_hamilt_general/module_xc/xc_functional_libxc.h source/module_hamilt_general/module_xc/xc_functional_libxc_tools.cpp source/module_hamilt_general/module_xc/xc_functional_libxc_vxc.cpp source/module_hamilt_general/module_xc/xc_functional_libxc_wrapper_gcxc.cpp source/module_hamilt_general/module_xc/xc_functional_libxc_wrapper_tauxc.cpp source/module_hamilt_general/module_xc/xc_functional_vxc.cpp source/module_io/cube_io.h source/module_io/write_cube.cpp
| #include <stdexcept> | ||
| #include <unistd.h> | ||
|
|
||
| void ModuleIO::write_libxc_r( |
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.
could you add tests for this function? since there are many cases, I guess we need more than one test.
| } // end switch( func.info->family ) | ||
| } // end for( xc_func_type &func : funcs ) | ||
|
|
||
| auto write_data = [&esolver]( |
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.
I think it's better to let
write_databe a free function ( named likewrite_xc_r) instead of a lambda in such a big functionwrite_libxc_r. It will help someone like me already having data likefxc(nrxx, 3)calculated elsewhere to write. The dependences can be pw_big, pw_rhod, nspin, ld(number_spin), directory and precision, independent ofPARAMandesolver.
After discussion, I think the write_cube function needs more refactor (#5191). The parameters need to be reduced for users' convenience. Then I can directly call write_cube at my need.
|
The PR lasts too long, please resubmit the PR again. |
No description provided.