From 3de1b44e454e1f81307c7e301fbe41c769e8c215 Mon Sep 17 00:00:00 2001 From: kai Date: Sat, 31 May 2025 13:53:18 +0200 Subject: [PATCH] fix --- 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 40141fc..6bfff05 100644 --- a/lab10/jacobi/jacobi_mpi.cpp +++ b/lab10/jacobi/jacobi_mpi.cpp @@ -47,7 +47,7 @@ Jacobi::Result JacobiMPI::run(const Matrix &init, double epsilon, if (rank == 0) { MPI_Request send_lower; std::vector send_vec_low = phi[t1].get_row(numRows - 1); - MPI_Isend(&send_vec_low, numCols, MPI_DOUBLE, neighborUpper, 0, + MPI_Isend(&send_vec_low, numCols, MPI_DOUBLE, neighborLower, 0, MPI_COMM_WORLD, &send_lower); MPI_Request requestLower; @@ -73,7 +73,7 @@ Jacobi::Result JacobiMPI::run(const Matrix &init, double epsilon, else if (rank == (numProc - 1)) { MPI_Request send_upper; std::vector send_vec_up = phi[t1].get_row(rank * numRows); - MPI_Isend(&send_vec_up, numCols, MPI_DOUBLE, neighborLower, 0, + MPI_Isend(&send_vec_up, numCols, MPI_DOUBLE, neighborUpper, 0, MPI_COMM_WORLD, &send_upper); MPI_Request request_upper;