Skip to content

Commit

Permalink
Print point and triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Sep 25, 2023
1 parent 7670e3f commit 60df519
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions benchmarks/tokamak/tokamak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ int main()
if (intersects)
{
coefficients = test_coeffs;
KOKKOS_IMPL_DO_NOT_USE_PRINTF("%d, %d: same triangle\n", i, j);
KOKKOS_IMPL_DO_NOT_USE_PRINTF("%d, %d: %f %f in %d (same)\n", i,
j, point[0], point[1],
triangle_index);
}
else
{
Expand All @@ -296,9 +298,8 @@ int main()
ArborX::attach(ArborX::intersects(point),
Attachment{triangle_index, coefficients}),
TriangleIntersectionCallback<DeviceType>{triangles});
KOKKOS_IMPL_DO_NOT_USE_PRINTF("%d, %d: %d %f %f %f\n", i, j,
triangle_index, coefficients[0],
coefficients[1], coefficients[2]);
KOKKOS_IMPL_DO_NOT_USE_PRINTF("%d, %d: %f %f in %d\n", i, j,
point[0], point[1], triangle_index);
}
}
});
Expand Down

0 comments on commit 60df519

Please sign in to comment.