This commit is contained in:
WickedJack99
2025-06-29 20:18:09 +02:00
parent b01a05b70d
commit 651ef23042

View File

@@ -159,7 +159,7 @@ void Jacobi::exchangeHaloLayersNodeMPIProcSecond(Matrix &phi)
// Communication with lower partner
if (!isFirstRank())
{
int lower = rank_ - 1;
int lower = rank_ + 1;
MPI_Isend(&phi(1, 0), sendSize, MPI_DOUBLE, lower, tag, MPI_COMM_WORLD,
&req.emplace_back());
MPI_Irecv(&phi(0, 0), sendSize, MPI_DOUBLE, lower, tag, MPI_COMM_WORLD,