This commit is contained in:
WickedJack99
2025-05-27 17:45:48 +02:00
parent 649c0b13f5
commit aba49b77cf

View File

@@ -28,7 +28,7 @@ void sendLocalRow(const Matrix &matrix, const int indexRowLocal, const int recei
MPI_Send(row.data(), row.size(), MPI_DOUBLE, receiverRank, indexRowGlobal, MPI_COMM_WORLD);
}
Result JacobiMPI::run(const Matrix &init, double epsilon, int maxNumIter)
Jacobi::Result JacobiMPI::run(const Matrix &init, double epsilon, int maxNumIter)
{
int rank, numProc;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
@@ -151,5 +151,5 @@ Result JacobiMPI::run(const Matrix &init, double epsilon, int maxNumIter)
std::swap(t0, t1);
}
return Result{phi[t0], dist, nIter};
return Jacobi::Result{phi[t0], dist, nIter};
}