ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
divide_info.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_HAMILT_MODULE_GINT_DIVIDE_INFO_H
2#define ABACUS_SOURCE_HAMILT_MODULE_GINT_DIVIDE_INFO_H
3
4#include "biggrid_info.h"
5#include "localcell_info.h"
6#include "unitcell_info.h"
7
8namespace ModuleGint
9{
10
12{
13 public:
14 // constructor
16 int startidx_bx_old,
17 int startidx_by_old,
18 int startidx_bz_old,
19 int nbx_old,
20 int nby_old,
21 int nbz_old,
22 std::shared_ptr<const UnitCellInfo> unitcell_info,
23 bool is_redivided = false);
24
25 // getter functions
26 std::shared_ptr<const LocalCellInfo> get_localcell_info() const { return localcell_info_; }
27 bool get_is_redivided() const { return is_redivided_; }
28
29 private:
30 // if the grid is redivided, is_redeiided_ is true
32
33 // the old start index of the local cell
37
38 // the old number of big grids in the local cell
42
43 // the new start index of the local cell
47
48 // the new number of big grids in the local cell
52
53 // the unitcell info
54 std::shared_ptr<const UnitCellInfo> unitcell_info_;
55
56 // the localcell info
57 std::shared_ptr<const LocalCellInfo> localcell_info_;
58};
59
60} // namespace ModuleGint
61
62#endif // ABACUS_SOURCE_HAMILT_MODULE_GINT_DIVIDE_INFO_H
int startidx_bz_old_
Definition divide_info.h:36
int startidx_bx_old_
Definition divide_info.h:34
int nby_old_
Definition divide_info.h:40
int nbx_new_
Definition divide_info.h:49
int startidx_by_old_
Definition divide_info.h:35
int nbx_old_
Definition divide_info.h:39
std::shared_ptr< const UnitCellInfo > unitcell_info_
Definition divide_info.h:54
int nbz_old_
Definition divide_info.h:41
int nbz_new_
Definition divide_info.h:51
std::shared_ptr< const LocalCellInfo > localcell_info_
Definition divide_info.h:57
int startidx_bx_new_
Definition divide_info.h:44
bool get_is_redivided() const
Definition divide_info.h:27
int nby_new_
Definition divide_info.h:50
DivideInfo(int startidx_bx_old, int startidx_by_old, int startidx_bz_old, int nbx_old, int nby_old, int nbz_old, std::shared_ptr< const UnitCellInfo > unitcell_info, bool is_redivided=false)
Definition divide_info.cpp:6
std::shared_ptr< const LocalCellInfo > get_localcell_info() const
Definition divide_info.h:26
int startidx_bz_new_
Definition divide_info.h:46
bool is_redivided_
Definition divide_info.h:31
int startidx_by_new_
Definition divide_info.h:45
Definition batch_biggrid.cpp:4