Skip to content

Commit 155bd5a

Browse files
committed
write full matrix
1 parent 5e230da commit 155bd5a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/apps/EDGE3D.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,19 @@ RAJA_INLINE void symmetric_edge_MpSmatrix(
534534
}
535535
}
536536
}
537+
538+
// write back to matrix
539+
rajaperf::Int_type offset = 0;
540+
for (rajaperf::Int_type p = 0; p < M; p++) {
541+
542+
matrix[p][p] = symmetric_matrix[offset];
543+
for (rajaperf::Int_type m = 1; m < (M-p); m++) {
544+
auto x = symmetric_matrix[offset + m];
545+
matrix[p][m] = x;
546+
matrix[m][p] = x;
547+
}
548+
offset += (M-p);
549+
}
537550
}
538551

539552
#define EDGE3D_DATA_SETUP \

0 commit comments

Comments
 (0)