ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
write_HS.h
Go to the documentation of this file.
1#ifndef WRITE_HS_H
2#define WRITE_HS_H
3
4#include <string>
5#include <vector>
6
7//#include "source_base/global_function.h"
8//#include "source_base/global_variable.h"
9#include "source_basis/module_ao/parallel_orbitals.h" // use Parallel_Orbitals
11
12
13// mohan add this file 2010-09-10
14namespace ModuleIO
15{
16 template<typename T>
17 void write_hsk(
18 const std::string &global_out_dir,
19 const int nspin,
20 const int nks,
21 const int nkstot,
22 const std::vector<int> &ik2iktot,
23 const std::vector<int> &isk,
24 hamilt::Hamilt<T>* p_hamilt,
25 const Parallel_Orbitals &pv,
26 const bool gamma_only,
27 const bool out_app_flag,
28 const int istep,
29 std::ofstream &ofs_running);
30
40 template<typename T>
41 void save_mat(const int istep,
42 const T* mat,
43 const int dim,
44 const bool bit,
45 const int precision,
46 const bool tri,
47 const bool app,
48 const std::string& file_name,
49 const Parallel_2D& pv,
50 const int drank,
51 const bool reduce = true);
52
53}
54#include "write_HS.hpp"
55#endif
This class packs the basic information of 2D-block-cyclic parallel distribution of an arbitrary matri...
Definition parallel_2d.h:12
Definition parallel_orbitals.h:9
Definition hamilt.h:17
#define T
Definition exp.cpp:237
Definition input_help.cpp:10
void save_mat(const int istep, const T *mat, const int dim, const bool bit, const int precision, const bool tri, const bool app, const std::string &file_name, const Parallel_2D &pv, const int drank, const bool reduce=true)
save a square matrix, such as H(k) and S(k)
Definition write_HS.hpp:98
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 bool gamma_only, const bool out_app_flag, const int istep, std::ofstream &ofs_running)
Definition write_HS.hpp:11