From c2a2b947732071cecde4a1e93522dc653f6197a2 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Wed, 18 Apr 2018 08:32:28 +0200
Subject: [PATCH] Warning fixes

---
 src/main.cpp                | 2 +-
 src/mesh/Connectivity1D.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index 5c78f4ae6..cf56b5daa 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -173,7 +173,7 @@ int main(int argc, char *argv[])
       const Kokkos::View<const Rd*> xj   = mesh_data.xj();
       const Kokkos::View<const double*> rhoj = unknowns.rhoj();
       std::ofstream fout("rho");
-      for (int j=0; j<mesh.numberOfCells(); ++j) {
+      for (size_t j=0; j<mesh.numberOfCells(); ++j) {
         fout << xj[j][0] << ' ' << rhoj[j] << '\n';
       }
     }
diff --git a/src/mesh/Connectivity1D.hpp b/src/mesh/Connectivity1D.hpp
index 01c9368b8..fa8bd8715 100644
--- a/src/mesh/Connectivity1D.hpp
+++ b/src/mesh/Connectivity1D.hpp
@@ -157,7 +157,7 @@ public:
       });
     m_node_cells(m_number_of_nodes-1,0) = m_number_of_cells-1;
 
-    Kokkos::parallel_for(m_number_of_nodes, KOKKOS_LAMBDA(const int& r) {
+    Kokkos::parallel_for(m_number_of_nodes, KOKKOS_LAMBDA(const unsigned int& r) {
 	for (int J=0; J<m_node_nb_cells(r); ++J) {
 	  int j = m_node_cells(r,J);
 	  for (int R=0; R<2; ++R) {
-- 
GitLab