From 24631bc25acda1fc0668d858746954c15128c0a2 Mon Sep 17 00:00:00 2001
From: Fanny CHOPOT <fanny.chopot.ocre@cea.fr>
Date: Wed, 25 Apr 2018 11:20:50 +0200
Subject: [PATCH] correction fonction _updateVolumeCenter()

---
 src/mesh/MeshData.hpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/mesh/MeshData.hpp b/src/mesh/MeshData.hpp
index 205dc9e01..bd318f33d 100644
--- a/src/mesh/MeshData.hpp
+++ b/src/mesh/MeshData.hpp
@@ -73,6 +73,7 @@ private:
   }
 
   // Ajout fonction pour calculer h_i+1/2
+  // PROBLEME Dj negatif parfois !
   KOKKOS_INLINE_FUNCTION
   void _updateVolumeCenter()
   {
@@ -82,9 +83,6 @@ private:
     const Kokkos::View<const unsigned short*> cell_nb_nodes
       = m_mesh.connectivity().cellNbNodes();
 
-    const Kokkos::View<const Rd*> xj;
-    _updateCenter();
-
     Kokkos::parallel_for(m_mesh.numberOfCells(), KOKKOS_LAMBDA(const int& j){
 	double sum_cjr_xj = 0;
 	for (int R=0; R<cell_nb_nodes[j]; ++R) {
-- 
GitLab