ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
read_hcontainer.h
Go to the documentation of this file.
1#ifndef READ_HCONTAINER_H
2#define READ_HCONTAINER_H
3
6
7namespace hamilt
8{
9
13template <typename T>
15{
16 public:
18 hamilt::HContainer<T> *hcontainer,
19 const std::string &filename,
20 const int nlocal,
21 const UnitCell *ucell,
22 int rank);
23 // read the matrices of all R vectors to the read stream
24 void read();
25
30 void read(int rx_in, int ry_in, int rz_in);
31
36 void read_single_R(int rx, int ry, int rz);
37
38 private:
40 std::string _filename;
42 const UnitCell *_ucell = nullptr;
43 int _rank = 0;
44};
45
46} // namespace hamilt
47
48#endif // OUTPUT_HCONTAINER_H
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition hcontainer.h:147
int _rank
Definition read_hcontainer.h:43
const UnitCell * _ucell
Definition read_hcontainer.h:42
void read(int rx_in, int ry_in, int rz_in)
std::string _filename
Definition read_hcontainer.h:40
void read_single_R(int rx, int ry, int rz)
hamilt::HContainer< T > * _hcontainer
Definition read_hcontainer.h:39
int _nlocal
Definition read_hcontainer.h:41
void read()
Definition read_hcontainer.cpp:29
Read_HContainer(hamilt::HContainer< T > *hcontainer, const std::string &filename, const int nlocal, const UnitCell *ucell, int rank)
Constructor of Read_HContainer.
Definition read_hcontainer.cpp:18
Definition wf_op.cpp:6