ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_pw
module_pwdft
kernels
mul_potential_op.h
Go to the documentation of this file.
1
#ifndef MUL_POTENTIAL_OP_H
2
#define MUL_POTENTIAL_OP_H
3
#include "
source_base/macros.h
"
4
5
namespace
hamilt
{
6
7
template
<
typename
T,
typename
Device>
8
struct
mul_potential_op
9
{
10
// int npw = rhopw_dev->npw;
11
// int nks = wfcpw->nks;
12
// int nk_fac = PARAM.inp.nspin == 2 ? 2 : 1;
13
// int nk = nks / nk_fac;
14
//
15
// #ifdef _OPENMP
16
// #pragma omp parallel for schedule(static)
17
// #endif
18
// for (int ig = 0; ig < npw; ig++)
19
// {
20
// int ig_kq = ik * nks * npw + iq * npw + ig;
21
// density_recip[ig] *= pot[ig_kq];
22
// }
23
using
FPTYPE
=
typename
GetTypeReal<T>::type
;
24
void
operator()
(
const
FPTYPE
*pot,
T
*density_recip,
int
npw,
int
nks,
int
ik,
int
iq);
25
};
26
27
}
// namespace hamilt
28
29
#endif
// MUL_POTENTIAL_OP_H
T
#define T
Definition
exp.cpp:237
macros.h
hamilt
Definition
hamilt.h:13
GetTypeReal::type
T type
Definition
macros.h:8
hamilt::mul_potential_op
Definition
mul_potential_op.h:9
hamilt::mul_potential_op::operator()
void operator()(const FPTYPE *pot, T *density_recip, int npw, int nks, int ik, int iq)
hamilt::mul_potential_op::FPTYPE
typename GetTypeReal< T >::type FPTYPE
Definition
mul_potential_op.h:23
Generated by
1.9.8