ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_lcao
module_operator_lcao
meta_lcao.h
Go to the documentation of this file.
1
#ifndef METALCAO_H
2
#define METALCAO_H
3
#include "
source_base/timer.h
"
4
#include "
source_lcao/module_gint/gint_gamma.h
"
5
#include "
source_lcao/module_gint/gint_k.h
"
6
#include "
operator_lcao.h
"
7
8
namespace
hamilt
9
{
10
11
#ifndef __METATEMPLATE
12
#define __METATEMPLATE
13
14
template
<
class
T>
15
class
Meta
:
public
T
16
{
17
};
18
19
#endif
20
21
template
<
typename
TK,
typename
TR>
22
class
Meta
<
OperatorLCAO
<TK, TR>> :
public
OperatorLCAO
<TK, TR>
23
{
24
public
:
25
Meta<OperatorLCAO<TK, TR>
>(
26
HS_Matrix_K<TK>
* hsk_in,
27
const
std::vector<ModuleBase::Vector3<double>>& kvec_d_in,
28
HContainer<TR>
* hR_in)
29
:
OperatorLCAO<TK, TR>
(hsk_in, kvec_d_in, hR_in)
30
{
31
this->cal_type =
calculation_type::lcao_gint
;
32
}
33
34
~Meta<OperatorLCAO<TK, TR>
>(){};
35
36
virtual
void
contributeHR
()
override
{}
//do nothing now
37
38
virtual
void
contributeHk
(
int
ik)
override
{};
//do nothing now
39
40
private
:
41
};
42
43
}
// namespace hamilt
44
#endif
hamilt::HContainer
Definition
hcontainer.h:144
hamilt::HS_Matrix_K
Definition
hs_matrix_k.hpp:11
hamilt::Meta< OperatorLCAO< TK, TR > >::contributeHk
virtual void contributeHk(int ik) override
Definition
meta_lcao.h:38
hamilt::Meta< OperatorLCAO< TK, TR > >::contributeHR
virtual void contributeHR() override
Definition
meta_lcao.h:36
hamilt::Meta
Definition
meta_lcao.h:16
hamilt::OperatorLCAO
Definition
operator_lcao.h:12
T
#define T
Definition
exp.cpp:237
gint_gamma.h
gint_k.h
hamilt
Definition
hamilt.h:12
hamilt::calculation_type::lcao_gint
@ lcao_gint
operator_lcao.h
timer.h
Generated by
1.9.8