ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <veff_op.h>
Public Member Functions | |
void | operator() (const Device *dev, const int &size, std::complex< FPTYPE > *out, const FPTYPE *in) |
Compute the effective potential of hPsi in real space, out[ir] *= in[ir];. | |
void | operator() (const Device *dev, const int &size, std::complex< FPTYPE > *out, std::complex< FPTYPE > *out1, const FPTYPE **in) |
Compute the effective potential of hPsi in real space with NSPIN > 2,. | |
void hamilt::veff_pw_op< FPTYPE, Device >::operator() | ( | const Device * | dev, |
const int & | size, | ||
std::complex< FPTYPE > * | out, | ||
const FPTYPE * | in | ||
) |
Compute the effective potential of hPsi in real space, out[ir] *= in[ir];.
Input Parameters
dev | : the type of computing device |
size | : array size |
in | : input array, elecstate::Potential::v_effective |
Output Parameters
out | : output array |
void hamilt::veff_pw_op< FPTYPE, Device >::operator() | ( | const Device * | dev, |
const int & | size, | ||
std::complex< FPTYPE > * | out, | ||
std::complex< FPTYPE > * | out1, | ||
const FPTYPE ** | in | ||
) |
Compute the effective potential of hPsi in real space with NSPIN > 2,.
out[ir] = out[ir] * (in[0][ir] + in[3][ir])
out1[ir] = out1[ir] * (in[0][ir] - in[3][ir])
Input Parameters
dev | : the type of computing device |
size | : array size |
in | : input array, elecstate::Potential::v_effective |
Output Parameters
out | : output array 1 |
out1 | : output array 2 |