Skip to content

Commit 720d9ae

Browse files
author
Martin D. Weinberg
committed
Fixed halo covariance MPI type mistake
1 parent 8cb1426 commit 720d9ae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

expui/BiorthBasis.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ namespace BasisClasses
611611
Eigen::VectorXd workE;
612612

613613
// M loop
614-
for (int m=0, moffset=0; m<=l; m++, L++) {
614+
for (int m=0, moffset=0, moffE=0; m<=l; m++, L++) {
615615

616616
fac = factorial(l, m) * legs[tid](l, m);
617617

@@ -684,10 +684,10 @@ namespace BasisClasses
684684
for (int l=0; l<ltot; l++) {
685685

686686
MPI_Allreduce(MPI_IN_PLACE, meanV[T][l].data(), meanV[T][l].size(),
687-
MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
687+
MPI_DOUBLE_COMPLEX, MPI_SUM, MPI_COMM_WORLD);
688688

689689
MPI_Allreduce(MPI_IN_PLACE, covrV[T][l].data(), covrV[T][l].size(),
690-
MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
690+
MPI_DOUBLE_COMPLEX, MPI_SUM, MPI_COMM_WORLD);
691691
}
692692
}
693693
}

0 commit comments

Comments
 (0)