16#ifndef CABANA_UTILS_HPP
17#define CABANA_UTILS_HPP
19#include <Cabana_Core_Config.hpp>
21#include <Kokkos_Core.hpp>
31template <
class Scalar, std::
size_t Dim>
32auto copyArray(
const std::array<Scalar, Dim> input )
34 Kokkos::Array<Scalar, Dim> output;
35 for ( std::size_t d = 0; d < Dim; ++d )
41template <
class Scalar, std::
size_t Dim>
42auto copyArray(
const Kokkos::Array<Scalar, Dim> input )
47template <
class Scalar, std::
size_t Dim>
50 Kokkos::Array<Scalar, Dim> output;
51 for ( std::size_t d = 0; d < Dim; ++d )
62constexpr bool deprecated( std::false_type ) {
return true; }
64[[deprecated(
"Cabana deprecation." )]]
constexpr bool
65deprecated( std::true_type )
71#ifdef Cabana_DISABLE_DEPRECATION_WARNINGS
72#define CABANA_DEPRECATED
74#define CABANA_DEPRECATED [[deprecated( "Cabana deprecation." )]]
Core: particle data structures and algorithms.
Definition Cabana_AoSoA.hpp:36
auto copyArray(const std::array< Scalar, Dim > input)
Copy std::array into Kokkos::Array for potential device use.
Definition Cabana_Utils.hpp:32