Skip to content

Commit

Permalink
Do not showcase KokkosExt::ArithmeticTraits in our examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Dec 21, 2023
1 parent a54f3aa commit 33d1fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/molecular_dynamics/example_molecular_dynamics.cpp
Expand Up @@ -148,7 +148,7 @@ int main(int argc, char *argv[])
// Typically, the neighbor search radius will be greater than the
// cut-off distance, hence the if condition below.
auto const cutoff_sq_ij =
KokkosExt::ArithmeticTraits::infinity<decltype(rsq)>::value;
Kokkos::Experimental::infinity_v<decltype(rsq)>;
if (rsq < cutoff_sq_ij)
{
auto const r2inv =
Expand Down Expand Up @@ -182,7 +182,7 @@ int main(int argc, char *argv[])
auto const dz = z_i - particles(indices(j))[2];
auto const rsq = dx * dx + dy * dy + dz * dz;
auto const cutoff_sq_ij =
KokkosExt::ArithmeticTraits::infinity<decltype(rsq)>::value;
Kokkos::Experimental::infinity_v<decltype(rsq)>;
if (rsq < cutoff_sq_ij)
{
auto const r2inv =
Expand Down

0 comments on commit 33d1fc7

Please sign in to comment.