Skip to content

Commit a8b7af0

Browse files
Fix: Remove redundant mpi barrier
1 parent f8ea0ed commit a8b7af0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/module_hamilt_pw/hamilt_pwdft/stress_func_exx.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ void Stress_PW<FPTYPE, Device>::stress_exx(ModuleBase::matrix& sigma,
2727
double tpiba2 = ucell.tpiba2;
2828
double omega_inv = 1.0 / omega;
2929

30-
MPI_Barrier(MPI_COMM_WORLD);
31-
3230
// allocate space
3331
T* psi_nk_real = nullptr;
3432
T* psi_mq_real = nullptr;
@@ -126,8 +124,6 @@ void Stress_PW<FPTYPE, Device>::stress_exx(ModuleBase::matrix& sigma,
126124

127125
}
128126

129-
MPI_Barrier(MPI_COMM_WORLD);
130-
131127
// prepare for the potential
132128
for (int ik = 0; ik < nks; ik++)
133129
{
@@ -156,8 +152,6 @@ void Stress_PW<FPTYPE, Device>::stress_exx(ModuleBase::matrix& sigma,
156152

157153
// calculate the stress
158154

159-
MPI_Barrier(MPI_COMM_WORLD);
160-
161155
// for nk, mq
162156
for (int ik = 0; ik < nks; ik++)
163157
{
@@ -232,8 +226,6 @@ void Stress_PW<FPTYPE, Device>::stress_exx(ModuleBase::matrix& sigma,
232226
}
233227
}
234228

235-
MPI_Barrier(MPI_COMM_WORLD);
236-
237229
for (int l = 0; l < 3; l++)
238230
{
239231
for (int m = l + 1; m < 3; m++)

0 commit comments

Comments
 (0)