ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
write_HS_sparse.h
Go to the documentation of this file.
1#ifndef WRITE_HS_SPARSE_H
2#define WRITE_HS_SPARSE_H
3
8
9#include <string>
10
11namespace ModuleIO
12{
13
14// jingan add 2021-6-4, modify 2021-12-2
15void save_HSR_sparse(const int& istep,
16 const Parallel_Orbitals& pv,
17 LCAO_HS_Arrays& HS_Arrays,
18 const double& sparse_thr,
19 const bool& binary,
20 const std::string& SR_filename,
21 const std::string& HR_filename_up,
22 const std::string& HR_filename_down);
23
24void save_dH_sparse(const int& istep,
25 const Parallel_Orbitals& pv,
26 LCAO_HS_Arrays& HS_Arrays,
27 const double& sparse_thr,
28 const bool& binary,
29 const std::string& fileflag = "h");
30
31template <typename Tdata>
32void save_sparse(const std::map<Abfs::Vector3_Order<int>, std::map<size_t, std::map<size_t, Tdata>>>& smat,
33 const std::set<Abfs::Vector3_Order<int>>& all_R_coor,
34 const double& sparse_thr,
35 const bool& binary,
36 const std::string& filename,
37 const Parallel_Orbitals& pv,
38 const std::string& label,
39 const int& istep = -1,
40 const bool& reduce = true);
41} // namespace ModuleIO
42
43#endif
Definition abfs-vector3_order.h:16
Definition LCAO_HS_arrays.hpp:9
Definition parallel_orbitals.h:9
This class has two functions: restart psi from the previous calculation, and write psi to the disk.
Definition cal_dos.h:9
void save_dH_sparse(const int &istep, const Parallel_Orbitals &pv, LCAO_HS_Arrays &HS_Arrays, const double &sparse_thr, const bool &binary, const std::string &fileflag="h")
Definition write_HS_sparse.cpp:332
void save_HSR_sparse(const int &istep, const Parallel_Orbitals &pv, LCAO_HS_Arrays &HS_Arrays, const double &sparse_thr, const bool &binary, const std::string &SR_filename, const std::string &HR_filename_up, const std::string &HR_filename_down)
Definition write_HS_sparse.cpp:10
void save_sparse(const std::map< Abfs::Vector3_Order< int >, std::map< size_t, std::map< size_t, Tdata > > > &smat, const std::set< Abfs::Vector3_Order< int > > &all_R_coor, const double &sparse_thr, const bool &binary, const std::string &filename, const Parallel_Orbitals &pv, const std::string &label, const int &istep=-1, const bool &reduce=true)
Definition write_HS_sparse.cpp:704