ABACUS
develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
source
source_lcao
allocate_dm.h
Go to the documentation of this file.
1
#ifndef LCAO_ALLOCATE_DM_H
2
#define LCAO_ALLOCATE_DM_H
3
4
#include "
source_estate/module_dm/dm_holder.h
"
5
6
class
K_Vectors
;
7
class
Parallel_Orbitals
;
8
9
namespace
LCAO_domain
10
{
11
// Allocate the DensityMatrix held by dmat, based on the k-point list and
12
// orbital parallel layout. Free function so that module_dm itself does not
13
// depend on LCAO-layer modules (K_Vectors, Parallel_Orbitals).
14
template
<
typename
TK>
15
void
allocate_dm
(module_dm::Setup_DM<TK>& dmat,
16
const
K_Vectors* kv,
17
const
Parallel_Orbitals
* pv,
18
const
int
nspin);
19
}
// namespace LCAO_domain
20
21
#endif
K_Vectors
Class for k-points management.
Definition
klist.h:20
LCAO_domain::Parallel_Orbitals
Definition
lcao_nl_mu.cpp:16
Parallel_Orbitals
Definition
parallel_orbitals.h:16
dm_holder.h
LCAO_domain
Definition
allocate_dm.cpp:8
LCAO_domain::allocate_dm
void allocate_dm(module_dm::Setup_DM< TK > &dmat, const K_Vectors *kv, const Parallel_Orbitals *pv, const int nspin)
Definition
allocate_dm.cpp:14
Generated by
1.15.0