Skip to content

Commit dbb2b3c

Browse files
committed
Add declaration for print_local_matrix in the header file
1 parent be03870 commit dbb2b3c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

source/source_estate/module_dm/cal_edm_tddft.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace elecstate
1515
{
1616
void print_local_matrix(std::ostream& os,
1717
const std::complex<double>* matrix_data,
18-
int local_rows, // pv.nrow
19-
int local_cols, // pv.ncol
20-
const std::string& matrix_name = "",
21-
int rank = -1)
18+
int local_rows,
19+
int local_cols,
20+
const std::string& matrix_name,
21+
int rank)
2222
{
2323
if (!matrix_name.empty() || rank >= 0)
2424
{

source/source_estate/module_dm/cal_edm_tddft.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
namespace elecstate
1010
{
11+
void print_local_matrix(std::ostream& os,
12+
const std::complex<double>* matrix_data,
13+
int local_rows, // pv.nrow
14+
int local_cols, // pv.ncol
15+
const std::string& matrix_name = "",
16+
int rank = -1);
17+
1118
void cal_edm_tddft(Parallel_Orbitals& pv,
1219
LCAO_domain::Setup_DM<std::complex<double>>& dmat,
1320
K_Vectors& kv,

0 commit comments

Comments
 (0)