This commit is contained in:
kai
2025-06-01 13:04:31 +02:00
parent 4520d2056b
commit 7b9a77454f

View File

@@ -150,7 +150,7 @@ Jacobi::Result JacobiMPI::run(const Matrix &init, double epsilon,
}
}
double globalDist;
double globalDist = 0;
MPI_Allreduce(&dist, &globalDist, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD);
dist = globalDist;