20std::string
dmk_gen_fname(
const bool gamma_only,
const int ispin,
const int ik);
45void dmk_readData(std::ifstream& ifs, std::complex<double>& data);
64 const std::string& dmk_dir,
65 std::vector<std::vector<T>>& dmk,
66 std::ofstream &ofs_running);
82void write_dmk(
const std::vector<std::vector<T>>& dmk,
84 const std::vector<double>& efs,
This class packs the basic information of 2D-block-cyclic parallel distribution of an arbitrary matri...
Definition parallel_2d.h:12
This class has two functions: restart psi from the previous calculation, and write psi to the disk.
Definition cal_dos.h:9
void write_dmk(const std::vector< std::vector< T > > &dmk, const int precision, const std::vector< double > &efs, const UnitCell *ucell, const Parallel_2D &pv)
Writes the DMK data to a file.
Definition io_dmk.cpp:282
bool read_dmk(const int nspin, const int nk, const Parallel_2D &pv, const std::string &dmk_dir, std::vector< std::vector< T > > &dmk, std::ofstream &ofs_running)
Reads the DMK data from a file.
Definition io_dmk.cpp:149
void dmk_read_ucell(std::ifstream &ifs)
Reads the unit cell information lines in a DMK file.
Definition io_dmk.cpp:102
void dmk_write_ucell(std::ofstream &ofs, const UnitCell *ucell)
Writes the unit cell information to a DMK file.
Definition io_dmk.cpp:72
std::string dmk_gen_fname(const bool gamma_only, const int ispin, const int ik)
Generates the filename for the DMK file based on the given parameters.
Definition io_dmk.cpp:58
void dmk_readData(std::ifstream &ifs, double &data)
Read one double from a file.
Definition io_dmk.cpp:124