Skip to content

Commit 6bcb232

Browse files
Fix: fix exx_gamma_extrapolation error in MPI
1 parent f1e5cb3 commit 6bcb232

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/source_pw/module_pwdft/operator_pw/op_exx_pw.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ OperatorEXXPW<T, Device>::OperatorEXXPW(const int* isk_in,
5656
{
5757
gamma_extrapolation = PARAM.inp.exx_gamma_extrapolation;
5858
bool is_mp = kv_in->get_is_mp();
59+
#ifdef __MPI
5960
Parallel_Common::bcast_bool(is_mp);
61+
#endif
6062
if (!is_mp)
6163
{
6264
gamma_extrapolation = false;

0 commit comments

Comments
 (0)