From 4eec8e12c30015753c348f5ded11d48440db68b5 Mon Sep 17 00:00:00 2001 From: WickedJack99 Date: Sun, 29 Jun 2025 20:28:44 +0200 Subject: [PATCH] . --- lab12/exc4/jacobi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab12/exc4/jacobi.cpp b/lab12/exc4/jacobi.cpp index 5164a97..be3ca9d 100644 --- a/lab12/exc4/jacobi.cpp +++ b/lab12/exc4/jacobi.cpp @@ -101,7 +101,7 @@ void Jacobi::exchangeHaloLayersNodeMPIProcFirst(Matrix &phi) while (states->shmStates[0] == SharedmemState::Unread) { - if (rank_ == 0) + if (rank_ == (n - 1)) std::cout << "102" << std::endl; MPI_Win_sync(win_);}