diff --git a/lib/gpu/lal_lj_tip4p_long.cpp b/lib/gpu/lal_lj_tip4p_long.cpp index 200f185e63..874cda718c 100644 --- a/lib/gpu/lal_lj_tip4p_long.cpp +++ b/lib/gpu/lal_lj_tip4p_long.cpp @@ -259,9 +259,9 @@ void LJTIP4PLongT::copy_relations_data(int n, int* tag, int *map_array, ucl_copy(this->tag, host_tag_write, nall, false); host_tag_write.resize_ib(max_same); - this->atom_sametag.resize_ib(nall); - for(int i=0; iatom_sametag, host_tag_write, nall, false); + this->atom_sametag.resize_ib(max_same); + for(int i=0; iatom_sametag, host_tag_write, max_same, false); host_tag_write.resize_ib(map_size); this->map_array.resize_ib(map_size);