From aba49b77cf2917f34fe8d379fa3fd87378d31439 Mon Sep 17 00:00:00 2001 From: WickedJack99 Date: Tue, 27 May 2025 17:45:48 +0200 Subject: [PATCH] safe --- lab10/jacobi/jacobi_mpi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab10/jacobi/jacobi_mpi.cpp b/lab10/jacobi/jacobi_mpi.cpp index 7500019..ab37e23 100644 --- a/lab10/jacobi/jacobi_mpi.cpp +++ b/lab10/jacobi/jacobi_mpi.cpp @@ -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}; }