From 591f795be5bb00a5efb891cc6e7f05f4d5c145a8 Mon Sep 17 00:00:00 2001 From: Gabe Morris Date: Thu, 11 Jan 2024 13:53:21 -0600 Subject: [PATCH] fixed errors in kokkos_for example --- examples/kokkos_for.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/kokkos_for.cpp b/examples/kokkos_for.cpp index 3a43ba85..f5b72939 100644 --- a/examples/kokkos_for.cpp +++ b/examples/kokkos_for.cpp @@ -129,7 +129,7 @@ int main(){ // DO ALL - FMatrixKokkos matrix1D(10,10); + FMatrixKokkos matrix1D(10); // Initialize matrix2D DO_ALL (i, 1, 10, { @@ -192,8 +192,8 @@ int main(){ j, 1, 10, i, 1, 10, loc_max, { - if(loc_max < matrix3D(i,j)){ - loc_max = matrix3D(i,j); + if(loc_max < matrix3D(i,j,k)){ + loc_max = matrix3D(i,j,k); } }, result); printf("result max 3D matrix = %i\n", result);