ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <meta_op.h>
Public Member Functions | |
void | operator() (const Device *dev, const int &ik, const int &pol, const int &npw, const int &npwx, const FPTYPE &tpiba, const FPTYPE *gcar, const FPTYPE *kvec_c, const std::complex< FPTYPE > *in, std::complex< FPTYPE > *out, const bool add=false) |
Compute the metaGGA potential of hPsi in recip space, out = hpsi * (wfcpw->gcar+wfcpw->kvec_c) * this->tpiba;. | |
void hamilt::meta_pw_op< FPTYPE, Device >::operator() | ( | const Device * | dev, |
const int & | ik, | ||
const int & | pol, | ||
const int & | npw, | ||
const int & | npwx, | ||
const FPTYPE & | tpiba, | ||
const FPTYPE * | gcar, | ||
const FPTYPE * | kvec_c, | ||
const std::complex< FPTYPE > * | in, | ||
std::complex< FPTYPE > * | out, | ||
const bool | add = false |
||
) |
Compute the metaGGA potential of hPsi in recip space, out = hpsi * (wfcpw->gcar+wfcpw->kvec_c) * this->tpiba;.
Input Parameters
dev | : the type of computing device |
ik | : current k point |
pol | : loop of [0, 1, 2] |
npw | : number of planewaves of current k point |
npwx | : number of planewaves of all k points |
tpiba | : ucell.tpiba |
gcar | : wfcpw->gcar |
kvec_c | : wfcpw->kvec_c |
in | : input hpsi |
bool | : conditional flag |
Output Parameters
out | : output array with size of nspin * npwx |