ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_lcao
setup_dm.h
Go to the documentation of this file.
1
#ifndef SETUP_DM_H
2
#define SETUP_DM_H
3
4
#include "
source_cell/klist.h
"
5
#include "
source_basis/module_ao/parallel_orbitals.h
"
6
#include "
source_estate/module_dm/density_matrix.h
"
7
8
#include <vector>
9
10
namespace
LCAO_domain
11
{
12
template
<
typename
TK>
13
class
Setup_DM
14
{
15
public
:
16
17
Setup_DM
()
18
{
19
}
// will be called by ElecStateLCAO_TDDFT
20
21
~Setup_DM
()
22
{
23
if
(this->
dm
!=
nullptr
)
24
{
25
delete
this->
dm
;
26
}
27
}
28
29
// allocate density matrix
30
void
allocate_dm
(
const
K_Vectors
* kv,
const
Parallel_Orbitals
* pv,
const
int
nspin);
31
32
elecstate::DensityMatrix<TK, double>
*
dm
=
nullptr
;
33
34
};
35
36
37
}
// namespace elecstate
38
39
#endif
K_Vectors
Definition
klist.h:13
LCAO_domain::Setup_DM
Definition
setup_dm.h:14
LCAO_domain::Setup_DM::~Setup_DM
~Setup_DM()
Definition
setup_dm.h:21
LCAO_domain::Setup_DM::dm
elecstate::DensityMatrix< TK, double > * dm
Definition
setup_dm.h:32
LCAO_domain::Setup_DM::allocate_dm
void allocate_dm(const K_Vectors *kv, const Parallel_Orbitals *pv, const int nspin)
Definition
setup_dm.cpp:20
LCAO_domain::Setup_DM::Setup_DM
Setup_DM()
Definition
setup_dm.h:17
Parallel_Orbitals
Definition
parallel_orbitals.h:9
elecstate::DensityMatrix
Definition
density_matrix.h:36
density_matrix.h
LCAO_domain
Definition
LCAO_allocate.cpp:8
parallel_orbitals.h
klist.h
Generated by
1.9.8