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) {