Remove unused variable

This commit is contained in:
Richard Berger
2022-01-26 11:37:53 -05:00
parent 3297ed7c5f
commit d861dbe8e0

View File

@ -172,13 +172,11 @@ TYPE create_kokkos(TYPE &data, typename TYPE::value_type **&array,
bigint nbytes = ((bigint) sizeof(typename TYPE::value_type *)) * n1;
array = (typename TYPE::value_type **) smalloc(nbytes,name);
bigint n = 0;
for (int i = 0; i < n1; i++) {
if (n2==0)
array[i] = nullptr;
else
array[i] = &data.h_view(i,0);
n += n2;
}
return data;
}
@ -193,13 +191,11 @@ template <typename TYPE, typename HTYPE>
bigint nbytes = ((bigint) sizeof(typename TYPE::value_type *)) * n1;
array = (typename TYPE::value_type **) smalloc(nbytes,name);
bigint n = 0;
for (int i = 0; i < n1; i++) {
if (n2==0)
array[i] = nullptr;
else
array[i] = &h_data(i,0);
n += n2;
}
return data;
}