ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_hamilt
module_xc
kernels
xc_functional_op.h
Go to the documentation of this file.
1
#ifndef source_hamilt_MODULE_XC_KERNELS_H_
2
#define source_hamilt_MODULE_XC_KERNELS_H_
3
4
#include <complex>
5
#include <
source_psi/psi.h
>
6
#include <
source_base/macros.h
>
7
8
namespace
hamilt
{
9
10
template
<
typename
T,
typename
Device>
11
struct
xc_functional_grad_wfc_op
{
12
using
Real
=
typename
GetTypeReal<T>::type
;
13
void
operator()
(
14
const
int
& ik,
15
const
int
& pol,
16
const
int
& npw,
17
const
int
& npwx,
18
const
Real
& tpiba,
19
const
Real
* gcar,
20
const
Real
* kvec_c,
21
const
T
* rhog,
22
T
* porter);
23
24
void
operator()
(
25
const
int
& ipol,
26
const
int
& nrxx,
27
const
T
* porter,
28
T
* grad);
29
};
30
31
}
// namespace hamilt
32
#endif
// source_hamilt_MODULE_XC_KERNELS_H_
T
#define T
Definition
exp.cpp:237
macros.h
hamilt
Definition
hamilt.h:12
psi.h
GetTypeReal::type
T type
Definition
macros.h:8
hamilt::xc_functional_grad_wfc_op
Definition
xc_functional_op.h:11
hamilt::xc_functional_grad_wfc_op::operator()
void operator()(const int &ik, const int &pol, const int &npw, const int &npwx, const Real &tpiba, const Real *gcar, const Real *kvec_c, const T *rhog, T *porter)
Definition
xc_functional_op.cpp:6
hamilt::xc_functional_grad_wfc_op::Real
typename GetTypeReal< T >::type Real
Definition
xc_functional_op.h:12
Generated by
1.9.8