From b03bee49b3a28b050d5fb030d93f236d62f0ea55 Mon Sep 17 00:00:00 2001 From: Stan Gerald Moore Date: Mon, 27 Nov 2023 11:48:42 -0700 Subject: [PATCH] Small tweak to fix warning --- src/KOKKOS/atom_map_kokkos.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/KOKKOS/atom_map_kokkos.cpp b/src/KOKKOS/atom_map_kokkos.cpp index 45b8251d22..06516e4142 100644 --- a/src/KOKKOS/atom_map_kokkos.cpp +++ b/src/KOKKOS/atom_map_kokkos.cpp @@ -214,12 +214,12 @@ void AtomKokkos::map_set() const int i = l_i_sorted(ii); const tagint tag_i = l_tag_sorted(ii); - tagint i_min = i; - tagint i_closest = MAXTAGINT; + int i_min = i; + int i_closest = MAXSMALLINT; // search atoms with same tag in the forward direction - tagint jj = ii+1; + int jj = ii+1; int closest_flag = 0; while (jj < nall) {