ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hsr_writer.h
Go to the documentation of this file.
1#ifndef HSR_WRITER_H
2#define HSR_WRITER_H
3
5
6#include <complex>
7#include <string>
8#include <vector>
9
10class UnitCell;
11
12namespace elecstate
13{
14struct Efermi;
15}
16
17namespace hamilt
18{
19template <typename T>
20class HContainer;
21} // namespace hamilt
22
23namespace ModuleIO
24{
25
28std::string hsr_gen_fname(const std::string& prefix,
29 const int ispin,
30 const bool numbered,
31 const int istep);
32
34std::string hsr_gen_fname(const std::string& prefix,
35 const int ispin,
36 const bool numbered,
37 const int istep,
38 const int out_type);
39
41std::string sr_gen_fname(const bool numbered, const int istep);
42
44std::string sr_gen_fname(const bool numbered, const int istep, const int out_type);
45
47std::string dhr_gen_fname(const std::string& prefix,
48 const int ispin,
49 const bool numbered,
50 const int istep);
51
56std::string dhk_gen_fname(const std::string& prefix,
57 const int ispin,
58 const int nspin,
59 const bool numbered,
60 const int istep);
61
69template <typename TR>
70bool write_hcontainer_csr(const std::string& fname,
71 const UnitCell* ucell,
72 const int precision,
73 hamilt::HContainer<TR>* mat_serial,
74 const int istep,
75 const bool append,
76 const int ispin,
77 const int nspin,
78 const std::string& label,
79 const std::string& representation_note,
80 const double efermi_eV,
81 const bool has_efermi);
82
84template <typename TR>
85void write_hcontainer_csr_binary(const std::string& fname,
86 hamilt::HContainer<TR>* mat_serial,
87 const int istep,
88 const bool append);
89
93template <typename TR>
94void write_hsr(const std::vector<hamilt::HContainer<TR>*>& hr_vec,
95 const hamilt::HContainer<TR>* sr,
96 const UnitCell* ucell,
97 const int out_type,
98 const int precision,
99 const Parallel_Blkcyclic& paraV,
100 const int out_app_flag,
101 const bool gamma_only,
102 const int* iat2iwt,
103 const int nat,
104 const int istep,
105 const std::string& global_out_dir,
106 const elecstate::Efermi& eferm,
107 std::ofstream& ofs_running);
108
109} // namespace ModuleIO
110
111#endif // HSR_WRITER_H
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition hcontainer.h:147
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void 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)
Definition hsr_writer.cpp:293
std::string 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).
Definition hsr_writer.cpp:54
std::string hsr_gen_fname(const std::string &prefix, const int ispin, const bool numbered, const int istep)
Definition hsr_writer.cpp:24
std::string sr_gen_fname(const bool numbered, const int istep)
Generate filename for spin-independent SR output.
Definition hsr_writer.cpp:43
std::string dhk_gen_fname(const std::string &prefix, const int ispin, const int nspin, const bool numbered, const int istep)
Definition hsr_writer.cpp:63
bool 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)
Definition hsr_writer.cpp:78
void 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.
Definition hsr_writer.cpp:196
Definition read_atoms_hlp_test.cpp:13
Definition wf_op.cpp:6
Definition fp_energy.h:65