17#include <Kokkos_Core.hpp>
24template <
class T,
class... P>
29 if (view.extent(0) <=
static_cast<unsigned long>(size))
31 Kokkos::resize(view,
idx_c(
real_c(size) * safetyMargin));
34 assert(view.extent(0) >=
static_cast<unsigned long>(size));
void grow(Kokkos::View< T, P... > &view, idx_t size, real_t safetyMargin=1.1_r)
Definition Kokkos_grow.hpp:25
Definition BerendsenBarostat.cpp:18
KOKKOS_INLINE_FUNCTION constexpr idx_t idx_c(const T &val)
Definition datatypes.hpp:93
int64_t idx_t
Definition datatypes.hpp:91
double real_t
Definition datatypes.hpp:99
KOKKOS_INLINE_FUNCTION constexpr real_t real_c(T t)
Definition datatypes.hpp:114