ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
allocate_dm.h
Go to the documentation of this file.
1#ifndef LCAO_ALLOCATE_DM_H
2#define LCAO_ALLOCATE_DM_H
3
5
6class K_Vectors;
8
9namespace 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).
14template <typename TK>
15void 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
Class for k-points management.
Definition klist.h:20
Definition lcao_nl_mu.cpp:16
Definition parallel_orbitals.h:16
Definition allocate_dm.cpp:8
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