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

Go to the source code of this file.

Namespaces

namespace  elecstate
namespace  hamilt
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::hsr_gen_fname (const std::string &prefix, const int ispin, const bool numbered, const int istep)
std::string ModuleIO::hsr_gen_fname (const std::string &prefix, const int ispin, const bool numbered, const int istep, const int out_type)
 Generate filename for spin-dependent HR output in the selected format.
std::string ModuleIO::sr_gen_fname (const bool numbered, const int istep)
 Generate filename for spin-independent SR output.
std::string ModuleIO::sr_gen_fname (const bool numbered, const int istep, const int out_type)
 Generate filename for spin-independent SR output in the selected format.
std::string ModuleIO::dhr_gen_fname (const std::string &prefix, const int ispin, const bool numbered, const int istep)
 Generate filename for derivative matrices (dH/dR, dS/dR).
std::string ModuleIO::dhk_gen_fname (const std::string &prefix, const int ispin, const int nspin, const bool numbered, const int istep)
template<typename TR>
bool ModuleIO::write_hcontainer_csr (const std::string &fname, const UnitCell *ucell, const int precision, hamilt::HContainer< TR > *mat_serial, const int istep, const bool append, const int ispin, const int nspin, const std::string &label, const std::string &representation_note, const double efermi_eV, const bool has_efermi)
template<typename TR>
void ModuleIO::write_hcontainer_csr_binary (const std::string &fname, hamilt::HContainer< TR > *mat_serial, const int istep, const bool append)
 Write one HContainer record in the native binary CSR format.
template<typename TR>
void ModuleIO::write_hsr (const std::vector< hamilt::HContainer< TR > * > &hr_vec, const hamilt::HContainer< TR > *sr, const UnitCell *ucell, const int out_type, const int precision, const Parallel_Blkcyclic &paraV, const int out_app_flag, const bool gamma_only, const int *iat2iwt, const int nat, const int istep, const std::string &global_out_dir, const elecstate::Efermi &eferm, std::ofstream &ofs_running)