FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
abacus-develop/source/source_io/output_mat_sparse.cpp at develop · pplab/abacus-develop · GitHub
pplab
/
abacus-develop
Public
forked from
deepmodeling/abacus-develop
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
abacus-develop
/
source
/
source_io
/
output_mat_sparse.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
104 lines (94 loc) · 3.16 KB
Breadcrumbs
abacus-develop
/
source
/
source_io
/
output_mat_sparse.cpp
Copy path
File metadata and controls
104 lines (94 loc) · 3.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
include
"
output_mat_sparse.h
"
#
include
"
source_io/cal_r_overlap_R.h
"
#
include
"
source_io/write_HS_R.h
"
namespace
ModuleIO
{
template
<>
void
output_mat_sparse
(
const
bool
& out_mat_hsR,
const
bool
& out_mat_dh,
const
bool
& out_mat_ds,
const
bool
&
out_mat_t
,
const
bool
& out_mat_r,
const
int
& istep,
const
ModuleBase::matrix& v_eff,
const
Parallel_Orbitals& pv,
Gint_k& gint_k,
const
TwoCenterBundle& two_center_bundle,
const
LCAO_Orbitals& orb,
UnitCell& ucell,
const
Grid_Driver& grid,
const
K_Vectors& kv,
hamilt::Hamilt<
double
>* p_ham)
{
}
template
<>
void
output_mat_sparse
(
const
bool
& out_mat_hsR,
const
bool
& out_mat_dh,
const
bool
& out_mat_ds,
const
bool
&
out_mat_t
,
const
bool
& out_mat_r,
const
int
& istep,
const
ModuleBase::matrix& v_eff,
const
Parallel_Orbitals& pv,
Gint_k& gint_k,
const
TwoCenterBundle& two_center_bundle,
const
LCAO_Orbitals& orb,
UnitCell& ucell,
const
Grid_Driver& grid,
const
K_Vectors& kv,
hamilt::Hamilt<std::
complex
<
double
>>* p_ham)
{
LCAO_HS_Arrays HS_Arrays;
//
store sparse arrays
//
! generate a file containing the Hamiltonian and S(overlap) matrices
if
(out_mat_hsR)
{
output_HSR
(ucell,istep, v_eff, pv, HS_Arrays, grid, kv, p_ham);
}
//
! generate a file containing the kinetic energy matrix
if
(
out_mat_t
)
{
output_TR
(istep, ucell, pv, HS_Arrays, grid, two_center_bundle, orb);
}
//
! generate a file containing the derivatives of the Hamiltonian matrix (in Ry/Bohr)
if
(out_mat_dh)
{
output_dHR
(istep,
v_eff,
gint_k,
//
mohan add 2024-04-01
ucell,
pv,
HS_Arrays,
grid,
//
mohan add 2024-04-06
two_center_bundle,
orb,
kv);
//
LiuXh add 2019-07-15
}
//
! generate a file containing the derivatives of the overlap matrix (in Ry/Bohr)
if
(out_mat_ds)
{
output_dSR
(istep,
ucell,
pv,
HS_Arrays,
grid,
//
mohan add 2024-04-06
two_center_bundle,
orb,
kv);
}
//
add by jingan for out r_R matrix 2019.8.14
if
(out_mat_r)
{
cal_r_overlap_R r_matrix;
r_matrix.
init
(ucell, pv, orb);
if
(out_mat_hsR)
{
r_matrix.
out_rR_other
(ucell,istep, HS_Arrays.
output_R_coor
);
}
else
{
r_matrix.
out_rR
(ucell, grid, istep);
}
}
return
;
}
}
//
namespace ModuleIO
Back
|
FazBrowse Home
|
New Git URL