24 CellIndex(
const std::vector<std::string>& atomLabels_in,
25 const std::vector<int>& atomCounts_in,
26 const std::vector<std::vector<int>>& lnchiCounts_in,
41 int get_iwt(
int iat,
int orbital_index)
const;
71 int iw2l(
int iat,
int iw)
const;
73 int iw2z(
int iat,
int iw)
const;
75 int iw2m(
int iat,
int iw)
const;
int iw2m(int iat, int iw) const
get m from iw
Definition cell_index.cpp:214
int iw2l(int iat, int iw) const
get L from iw
Definition cell_index.cpp:164
int get_maxL(int iat) const
get maximum L of a given atom
Definition cell_index.cpp:84
std::vector< std::string > atomLabels
atomLabels is a vector used to store the atom labels
Definition cell_index.h:57
std::vector< int > orbitalCounts
orbitalCounts is a vector used to store the number of orbitals for each type
Definition cell_index.h:53
std::vector< std::vector< int > > lnchiCounts
lnchiCounts is a vector used to store the number of chi for each L
Definition cell_index.h:55
int get_nchi(int iat, int L) const
get nchi of a given atom and a give L
Definition cell_index.cpp:91
int get_nw() const
get nw
Definition cell_index.cpp:39
bool check_nspin(int nspin)
check nspin
Definition cell_index.cpp:239
void cal_orbitalCounts()
calculate orbitalCounts from lnchiCounts
Definition cell_index.cpp:248
int get_iwt(int iat, int orbital_index) const
get iwt
Definition cell_index.cpp:55
int npol_
npol is determined by nspin and used in get_iwt and get_nw
Definition cell_index.h:59
std::string get_atom_label(int iat, bool order=false) const
get atom label of a given atom
Definition cell_index.cpp:120
void check_atomCounts()
check if atomCounts is set ok
Definition cell_index.cpp:101
int get_nat() const
the total number of atoms
Definition cell_index.cpp:24
std::vector< int > atomCounts
atomCounts is a vector used to store the number of atoms for each type
Definition cell_index.h:51
int get_ntype() const
get ntype
Definition cell_index.cpp:19
int iat2ia(int iat) const
get index of atom in the same type
Definition cell_index.cpp:152
int iw2z(int iat, int iw) const
get Z from iw
Definition cell_index.cpp:189
int iat2it(int iat) const
get type of atom from total order
Definition cell_index.cpp:130