21 #ifndef JDFTX_ELECTRONIC_BASIS_H 22 #define JDFTX_ELECTRONIC_BASIS_H 24 #include <electronic/common.h> 62 const std::vector<int>& indexVec,
66 #endif // JDFTX_ELECTRONIC_BASIS_H vector3< int > * iGarrPref
points to iGarrGpu in GPU mode and iGarr otherwise
Definition: Basis.h:43
vector3< int > * iGarr
the (integer) G-vectors for the basis in recip. lattice coords
Definition: Basis.h:36
Simulation grid descriptor.
Definition: GridInfo.h:45
const IonInfo * iInfo
pointer to the ion information (basis is conceptually ultrasoft-pseudopotential dependent) ...
Definition: Basis.h:33
int * indexPref
points to indexGpu in GPU mode and index otherwise
Definition: Basis.h:42
void setup(const GridInfo &gInfo, const IonInfo &iInfo, double Ecut, const vector3<> k)
Setup the indices and integer G-vectors within Ecut for kpoint k.
std::vector< int > head
short list of low G basis locations (used for phase fixing)
Definition: Basis.h:45
vector3< int > * iGarrGpu
GPU copy of G-vector index coefficients.
Definition: Basis.h:39
int * indexGpu
copy of index array on the GPU
Definition: Basis.h:40
const GridInfo * gInfo
pointer to the grid specs
Definition: Basis.h:32
size_t nbasis
number of basis elements (i.e. G-vectors)
Definition: Basis.h:35
Geometry of the simulation grid.
int * index
indices of the basis functions in the FFT boxes used
Definition: Basis.h:37
Basis & operator=(const Basis &)
copy by reference