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_base/macros.h
>
6
#include <
source_base/module_device/types.h
>
7
8
namespace
hamilt
9
{
10
11
template
<
typename
T,
typename
Device>
12
struct
xc_functional_grad_wfc_op
13
{
14
using
Real
=
typename
GetTypeReal<T>::type
;
15
void
operator()
(
16
const
int
&ik,
17
const
int
&pol,
18
const
int
&npw,
19
const
int
&npwx,
20
const
Real
&tpiba,
21
const
Real
*gcar,
22
const
Real
*kvec_c,
23
const
T
*rhog,
24
T
*porter);
25
26
void
operator()
(
27
const
int
&ipol,
28
const
int
&nrxx,
29
const
T
*porter,
30
T
*grad);
31
};
32
33
}
// namespace hamilt
34
#endif
// source_hamilt_MODULE_XC_KERNELS_H_
T
#define T
Definition
exp.cpp:237
macros.h
hamilt
Definition
wf_op.cpp:6
GetTypeReal::type
T type
Definition
macros.h:8
hamilt::xc_functional_grad_wfc_op
Definition
xc_functional_op.h:13
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:7
hamilt::xc_functional_grad_wfc_op::Real
typename GetTypeReal< T >::type Real
Definition
xc_functional_op.h:14
types.h
Generated by
1.15.0