Update Kokkos library in LAMMPS to v4.6.0

This commit is contained in:
Stan Moore
2025-03-28 15:29:14 -06:00
parent 48893236ec
commit b7b9a4a599
384 changed files with 13243 additions and 9477 deletions

View File

@ -53,13 +53,13 @@ TEST(std_algorithms_mod_ops_test, move) {
// move constr
MyMovableType b(std::move(a));
ASSERT_EQ(b.m_value, 11);
ASSERT_EQ(a.m_value, -2);
ASSERT_EQ(a.m_value, -2); // NOLINT(bugprone-use-after-move)
// move assign
MyMovableType c;
c = std::move(b);
ASSERT_EQ(c.m_value, 11);
ASSERT_EQ(b.m_value, -4);
ASSERT_EQ(b.m_value, -4); // NOLINT(bugprone-use-after-move)
}
template <class ViewType>
@ -70,7 +70,7 @@ struct StdAlgoModSeqOpsTestMove {
void operator()(const int index) const {
typename ViewType::value_type a{11};
using move_t = decltype(std::move(a));
static_assert(std::is_rvalue_reference<move_t>::value);
static_assert(std::is_rvalue_reference_v<move_t>);
m_view(index) = std::move(a);
}