From 155bd5a73eebfec90fcfc5f65036c7761df78d83 Mon Sep 17 00:00:00 2001 From: pguthrey Date: Tue, 10 Sep 2024 09:58:55 -0700 Subject: [PATCH] write full matrix --- src/apps/EDGE3D.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/apps/EDGE3D.hpp b/src/apps/EDGE3D.hpp index 2d39ecf30..81ab21ba5 100644 --- a/src/apps/EDGE3D.hpp +++ b/src/apps/EDGE3D.hpp @@ -534,6 +534,19 @@ RAJA_INLINE void symmetric_edge_MpSmatrix( } } } + + // write back to matrix + rajaperf::Int_type offset = 0; + for (rajaperf::Int_type p = 0; p < M; p++) { + + matrix[p][p] = symmetric_matrix[offset]; + for (rajaperf::Int_type m = 1; m < (M-p); m++) { + auto x = symmetric_matrix[offset + m]; + matrix[p][m] = x; + matrix[m][p] = x; + } + offset += (M-p); + } } #define EDGE3D_DATA_SETUP \