From b20c12dfe3190ac4b3330f82a6a7064944271a28 Mon Sep 17 00:00:00 2001 From: kai Date: Sat, 31 May 2025 17:32:01 +0200 Subject: [PATCH] ++ --- lab10/jacobi/jacobi_mpi.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lab10/jacobi/jacobi_mpi.cpp b/lab10/jacobi/jacobi_mpi.cpp index c2064cc..b842746 100644 --- a/lab10/jacobi/jacobi_mpi.cpp +++ b/lab10/jacobi/jacobi_mpi.cpp @@ -156,9 +156,10 @@ Jacobi::Result JacobiMPI::run(const Matrix &init, double epsilon, nIter++; std::swap(t0, t1); + if (nIter == maxNumIter) { + std::cout << phi[t1] << std::endl; + } } - std::cout << phi[t1] << std::endl; - return Jacobi::Result{phi[t1], dist, nIter}; }