diff --git a/.#CMakeLists.txt b/.#CMakeLists.txt new file mode 120000 index 0000000000000000000000000000000000000000..6091011a8f2c24381bef6d3375bb418ba24f0abc --- /dev/null +++ b/.#CMakeLists.txt @@ -0,0 +1 @@ +delpinos@u-sterne.bruyeres.cea.fr.23888:1521446211 \ No newline at end of file diff --git a/main.cpp b/main.cpp index 065823b290b5418d76da7c8e736369b281b5a1a9..840b426d1a9f8a90fca7b8df8488f6ef2d3a4770 100644 --- a/main.cpp +++ b/main.cpp @@ -15,16 +15,18 @@ inline double p(double rho, double e, double gamma) return (gamma-1)*rho*e; } +typedef const double my_double; + struct ReduceMin { private: - Kokkos::View<double*> x_; + const Kokkos::View<my_double*> x_; public: - typedef Kokkos::View<double*>::value_type value_type; + typedef Kokkos::View<my_double*>::non_const_value_type value_type; - ReduceMin(const Kokkos::View<double*>& x) : x_ (x) {} + ReduceMin(const Kokkos::View<my_double*>& x) : x_ (x) {} - typedef Kokkos::View<double*>::size_type size_type; + typedef Kokkos::View<my_double*>::size_type size_type; KOKKOS_INLINE_FUNCTION void operator() (const size_type i, value_type& update) const