From 337b0fd6495b30272b61af8eff27567d7daa8428 Mon Sep 17 00:00:00 2001 From: Vsevak Date: Sun, 22 Dec 2019 20:20:12 +0300 Subject: [PATCH] Fix 'sametag' transfer --- lib/gpu/lal_lj_tip4p_long.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);