ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
test_operator_basis.h
Go to the documentation of this file.
1#ifndef TEST_OPERATOR_BASIS_H
2#define TEST_OPERATOR_BASIS_H
3
6
7#include <cstddef>
8
9namespace operator_test
10{
11
12// The operator fixtures use repeated pure-s shells with one radial function.
14{
15 const std::size_t norbital = static_cast<std::size_t>(cell.atoms[0].nw);
17 for (int it = 0; it < cell.ntype; ++it)
18 {
19 range[it].resize(1);
20 range[it][0].N = norbital;
21 range[it][0].M = 1;
22 }
25 return BasisFlattenedIndexing(hierarchy, cell.iat2it, cell.get_npol());
26}
27
28} // namespace operator_test
29
30#endif
int nw
number of local orbitals (l,n,m) of this type
Definition atom_spec.h:36
Canonical atom-major flattening of the LCAO basis hierarchy.
Definition basis_flattened_indexing.h:40
Provide the basic information about unitcell.
Definition unitcell.h:16
int ntype
number of atom species in UnitCell
Definition unitcell.h:154
Atom * atoms
Definition unitcell.h:165
const int & get_npol() const
Get npol.
Definition unitcell.h:66
std::vector< int > iat2it
iat==>it, distinguish a atom belong to which type
Definition unitcell.h:156
IndexLNM construct_index(const Range &range)
Definition element_basis_index.cpp:12
std::vector< Index_T > IndexLNM
Definition element_basis_index.h:42
std::vector< std::vector< NM > > Range
Definition element_basis_index.h:41
Definition test_operator_basis.h:10
BasisFlattenedIndexing make_s_orbital_basis(const UnitCell &cell)
Definition test_operator_basis.h:13