ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
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"
7
8#include <vector>
9
10namespace LCAO_domain
11{
12template <typename TK>
14{
15 public:
16
18 {
19 } // will be called by ElecStateLCAO_TDDFT
20
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
33
34};
35
36
37} // namespace elecstate
38
39#endif
Definition klist.h:13
Definition setup_dm.h:14
~Setup_DM()
Definition setup_dm.h:21
elecstate::DensityMatrix< TK, double > * dm
Definition setup_dm.h:32
void allocate_dm(const K_Vectors *kv, const Parallel_Orbitals *pv, const int nspin)
Definition setup_dm.cpp:20
Setup_DM()
Definition setup_dm.h:17
Definition parallel_orbitals.h:9
Definition density_matrix.h:36
Definition LCAO_allocate.cpp:8