ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
write_dmk.h File Reference
#include "source_base/parallel_blkcyc.h"
#include "source_cell/unitcell.h"
#include "source_cell/klist.h"
#include <fstream>
#include <string>
#include <vector>
Include dependency graph for write_dmk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ModuleIO
 Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in each anonymous namespace) so the header layout, R records and file-append rules cannot diverge between hs_sparse_io.cpp, dhs_sparse_writer.cpp, pos_op_csr.cpp, hsr_writer.cpp and write_dmr.cpp.

Functions

std::string ModuleIO::dmk_gen_fname (const bool gamma_only, const int ispin, const int nspin, const int ik, const int istep)
 Generates the filename for the DMK file based on the given parameters.
bool ModuleIO::dmk_readData (std::ifstream &ifs, double &data)
 Read one double from a file.
bool ModuleIO::dmk_readData (std::ifstream &ifs, std::complex< double > &data)
 Read one complex double from a file.
template<typename T>
bool ModuleIO::read_dmk (const int nspin, const int nk, const K_Vectors &kv, const Parallel_Blkcyclic &pv, const bool column_major, const std::string &dmk_dir, const int istep, const int out_app_flag, std::vector< std::vector< T > > &dmk, std::ofstream &ofs_running)
 Reads the DMK data from a file.
template<typename T>
void ModuleIO::write_dmk (const std::vector< std::vector< T > > &dmk, const K_Vectors &kv, const int precision, const std::vector< double > &efs, const UnitCell *ucell, const Parallel_Blkcyclic &pv, const bool column_major, const std::string &dmk_dir, const int istep, const int out_app_flag, std::ofstream &ofs_running)
 Writes the DMK data to a file.