ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hsk_writer.h
Go to the documentation of this file.
1#ifndef HSK_WRITER_H
2#define HSK_WRITER_H
3
4#include <fstream>
5#include <string>
6#include <vector>
7
10
11// mohan note: this file holds the H(k)/S(k) writer
12// (formerly write_hsk in write_hs.h / write_hs.hpp).
13
14class K_Vectors;
15class UnitCell;
16
17namespace ModuleIO
18{
19
35template <typename T>
36void write_hsk(const std::string& global_out_dir,
37 const int nspin,
38 const int nks,
39 const int nkstot,
40 const std::vector<int>& ik2iktot,
41 const std::vector<int>& isk,
42 hamilt::Hamilt<T>* p_hamilt,
43 const Parallel_Orbitals& pv,
44 const K_Vectors& kv,
45 const UnitCell* ucell,
46 const std::vector<double>& efs,
47 const bool gamma_only,
48 const int out_app_flag,
49 const int istep,
50 const int out_type,
51 const int precision,
52 const int nlocal,
53 const std::string& ks_solver,
54 const int drank,
55 std::ofstream& ofs_running);
56
57} // namespace ModuleIO
58
59#endif // HSK_WRITER_H
Class for k-points management.
Definition klist.h:20
Provide the basic information about unitcell.
Definition unitcell.h:16
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void write_hsk(const std::string &global_out_dir, const int nspin, const int nks, const int nkstot, const std::vector< int > &ik2iktot, const std::vector< int > &isk, hamilt::Hamilt< T > *p_hamilt, const Parallel_Orbitals &pv, const K_Vectors &kv, const UnitCell *ucell, const std::vector< double > &efs, const bool gamma_only, const int out_app_flag, const int istep, const int out_type, const int precision, const int nlocal, const std::string &ks_solver, const int drank, std::ofstream &ofs_running)
Write H(k) and S(k) matrices for each k-point to disk.
Definition hsk_writer.cpp:22