diff --git a/P2/distributedtests.cpp b/P2/distributedtests.cpp index 89cdc1ae91db97193ea47a7f63b6d22226f70dbe..7c6ab45768ffcb021e40a1079199f369ebbc6b1b 100644 --- a/P2/distributedtests.cpp +++ b/P2/distributedtests.cpp @@ -49,7 +49,7 @@ void testMultiplyTransposed() { double totalTimeSeq = 0.0; double totalTimeDist = 0.0; - for (int rep = 0; rep < 3; ++rep) { + for (int rep = 0; rep < 10; ++rep) { // Initialisation des matrices pleines Matrix matrix1Full(N, N); Matrix matrix2Full(N, N); @@ -74,7 +74,7 @@ void testMultiplyTransposed() { // Chronométrage de l'opération séquentielle double timeSeq = 0.0; - if (rank == 0) { + if (rank == -1) { double startSequential = MPI_Wtime(); Matrix resultSequential = matrix1Full * matrix2Full.transpose(); double endSequential = MPI_Wtime();