Skip to content

Commit

Permalink
write full matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pguthrey committed Sep 10, 2024
1 parent 5e230da commit 155bd5a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/apps/EDGE3D.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 155bd5a

Please sign in to comment.