54 std::ofstream output_file(file_path, std::ios::binary);
55 if (!output_file.is_open()) {
56 log::warn(
"BerkeleyGWChargeDensityFile: cannot open {} for writing", file_path);
63 log::info(
" Wrote BerkeleyGW charge density file: {}", file_path);
BerkeleyGWChargeDensityFile(const MeanFieldRecord &record)
BerkeleyGWChargeDensityFile(const MeanFieldRecord &&)=delete
void write_to_file(const std::string &file_path) const
One per-spin field on the charge-density G-set, in RHO's layout; see the file comment.
void write(std::ofstream &output_file) const
Writes header, G-set and field to an open stream; throws if the field is not on the G-set.
void warn(spdlog::format_string_t< Args... > fmt, Args &&... args)
void info(spdlog::format_string_t< Args... > fmt, Args &&... args)
std::vector< std::vector< Complex > > charge_density_g