Skip to content

Commit 27ddcb3

Browse files
committed
Fix MPI bug
1 parent 0317267 commit 27ddcb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/source_lcao/module_rt/gather_mat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace module_rt
88
{
9-
#ifdef __MPI
109
//------------------------ MPI gathering and distributing functions ------------------------//
1110
// This struct is used for collecting matrices from all processes to root process
1211
template <typename T>
@@ -18,6 +17,7 @@ struct Matrix_g
1817
std::shared_ptr<int> desc;
1918
};
2019

20+
#ifdef __MPI
2121
// Collect matrices from all processes to root process
2222
template <typename T>
2323
void gatherMatrix(const int myid, const int root_proc, const hamilt::MatrixBlock<T>& mat_l, Matrix_g<T>& mat_g)

0 commit comments

Comments
 (0)