44 const std::string& directory)
const override {
45 std::filesystem::create_directories(directory);
48 write_or_remove(directory +
"/WFN",
49 [&](
const std::string& path) { wavefunction_file.
write_to_file(path); });
52 write_or_remove(directory +
"/RHO",
53 [&](
const std::string& path) { charge_density_file.write_to_file(path); });
57 write_or_remove(directory +
"/vxc.dat", [&](
const std::string& path) {
58 exchange_correlation_file.write_to_file(path);
60 }
catch (
const std::runtime_error& error) {
61 log::warn(
" vxc.dat not written: {}", error.what());
65 write_or_warn(directory +
"/VXC",
"VXC", [&](
const std::string& path) {
70 write_or_warn(directory +
"/VSC",
"VSC", [&](
const std::string& path) {
71 self_consistent_potential_file.write_to_file(path);
76 write_or_warn(directory +
"/VKB",
"VKB", [&](
const std::string& path) {