From 7f2ae606f8cf890e8cb289554de41976420b71ce Mon Sep 17 00:00:00 2001 From: PioDer Date: Wed, 2 Nov 2016 16:45:26 +0100 Subject: [PATCH] optymalizacja 5x --- DergunPiotr-WaskoDominik/zad2/macierz_mpi.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/DergunPiotr-WaskoDominik/zad2/macierz_mpi.cpp b/DergunPiotr-WaskoDominik/zad2/macierz_mpi.cpp index 96135a6..79bfd81 100644 --- a/DergunPiotr-WaskoDominik/zad2/macierz_mpi.cpp +++ b/DergunPiotr-WaskoDominik/zad2/macierz_mpi.cpp @@ -66,9 +66,9 @@ int main(int argc, char *argv[]) exit(1); } - if (rozmiar <= 0 || rozmiar > 2000) + if (rozmiar <= 0) { - cerr << "The number of matrix dimension must be in range [1,2000]" << endl; + cerr << "The number of matrix dimension must be positive" << endl; exit(1); } @@ -150,9 +150,12 @@ int main(int argc, char *argv[]) for (i=0; i