ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hamilt::meta_pw_op< FPTYPE, Device > Struct Template Reference

#include <meta_op.h>

Collaboration diagram for hamilt::meta_pw_op< FPTYPE, Device >:

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;.

Member Function Documentation

◆ operator()()

template<typename FPTYPE, typename Device>
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

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

Parameters
out: output array with size of nspin * npwx

The documentation for this struct was generated from the following file: