Skip to content

Commit

Permalink
utils: implicit copy-assign deprecated in array_sum_reduce (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson authored Sep 9, 2022
1 parent 26f8704 commit 072bc91
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/KokkosKernels_Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1454,10 +1454,7 @@ struct array_sum_reduce {
array_sum_reduce() {
for (int i = 0; i < N; i++) data[i] = scalar_t();
}
KOKKOS_INLINE_FUNCTION
array_sum_reduce(const ValueType &rhs) {
for (int i = 0; i < N; i++) data[i] = rhs.data[i];
}

KOKKOS_INLINE_FUNCTION // add operator
array_sum_reduce &
operator+=(const ValueType &src) {
Expand Down

0 comments on commit 072bc91

Please sign in to comment.