Small tweak to fix warning

This commit is contained in:
Stan Gerald Moore
2023-11-27 11:48:42 -07:00
parent e15aef290d
commit b03bee49b3

View File

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