From d2d8c090d56c2dc2ac67077f29845e91f2004794 Mon Sep 17 00:00:00 2001 From: WickedJack99 Date: Sun, 29 Jun 2025 21:22:30 +0200 Subject: [PATCH] . --- lab12/exc4/jacobi.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lab12/exc4/jacobi.cpp b/lab12/exc4/jacobi.cpp index 708a23d..25f7b1b 100644 --- a/lab12/exc4/jacobi.cpp +++ b/lab12/exc4/jacobi.cpp @@ -160,7 +160,7 @@ void Jacobi::exchangeHaloLayersNodeMPIProcFirst(Matrix &phi) { if (rank_ == (numProc_ - 2)) { - std::cout << "t" << std::endl; + std::cout << "t1" << std::endl; } MPI_Win_sync(win_); } @@ -173,6 +173,10 @@ void Jacobi::exchangeHaloLayersNodeMPIProcFirst(Matrix &phi) // Wait for first proc to write its row back to shared memory row 0 while (states->shmStates[0] == SharedmemState::Read) { + if (rank_ == (numProc_ - 2)) + { + std::cout << "t2" << std::endl; + } MPI_Win_sync(win_); }