From f091e2ce698b89889d9e0586ae1010d772ccd637 Mon Sep 17 00:00:00 2001
From: JordanHanotiaux <103147288+JordanHanotiaux@users.noreply.github.com>
Date: Fri, 11 Apr 2025 14:58:21 +0200
Subject: [PATCH] Update distributedmatrix.cpp

---
 P2/distributedmatrix.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/P2/distributedmatrix.cpp b/P2/distributedmatrix.cpp
index 4df69bd..4e7ba44 100644
--- a/P2/distributedmatrix.cpp
+++ b/P2/distributedmatrix.cpp
@@ -218,7 +218,7 @@ Matrix DistributedMatrix::multiplyTransposed(const DistributedMatrix &other) con
     double *resultData = (double*) malloc(globalRows * other.globalRows * sizeof(double));
 
     // Effectuer la réduction
-    MPI_Allreduce(local.getData(), resultData, globalRows * other.globalRows, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
+    MPI_Allreduce(local.getData().data(), resultData, globalRows * other.globalRows, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
 
     // Affichage de resultData avant de le libérer
     if (rank == 0) { // Print seulement sur le processus 0
-- 
GitLab