From 4afeb622a32ceb878eb018984933a5465c96eeb0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Fri, 23 Mar 2018 17:55:44 +0100
Subject: [PATCH] Did some tests arround const Kokkos::Views and 
 Kokkos::View::non_const_value_type

---
 .#CMakeLists.txt |  1 +
 main.cpp         | 10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
 create mode 120000 .#CMakeLists.txt

diff --git a/.#CMakeLists.txt b/.#CMakeLists.txt
new file mode 120000
index 000000000..6091011a8
--- /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 065823b29..840b426d1 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
-- 
GitLab