Skip to content

Conversation

@PeizeLin
Copy link
Collaborator

No description provided.

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
@mohanchen mohanchen added the Input&Output Suitable for coders without knowing too many DFT details label Oct 17, 2024
#include <stdexcept>
#include <unistd.h>

void ModuleIO::write_libxc_r(
Copy link
Collaborator

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](
Copy link
Collaborator

@maki49 maki49 Oct 22, 2024

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_data be a free function ( named like write_xc_r) instead of a lambda in such a big function write_libxc_r. It will help someone like me already having data like fxc(nrxx, 3) calculated elsewhere to write. The dependences can be pw_big, pw_rhod, nspin, ld(number_spin), directory and precision, independent of PARAM and esolver.

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.

@mohanchen
Copy link
Collaborator

The PR lasts too long, please resubmit the PR again.

@mohanchen mohanchen closed this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Input&Output Suitable for coders without knowing too many DFT details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants