From 0ce37fee4959595103e033408c4c97aeb9e13a70 Mon Sep 17 00:00:00 2001
From: LABOURASSE Emmanuel 204472 <labourassee@u-sterne.bruyeres.cea.fr>
Date: Fri, 11 May 2018 12:56:42 +0200
Subject: [PATCH] correction de la formule de moyenne de u

---
 src/scheme/FiniteVolumesDiffusion.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scheme/FiniteVolumesDiffusion.hpp b/src/scheme/FiniteVolumesDiffusion.hpp
index 72e5c3996..182871147 100644
--- a/src/scheme/FiniteVolumesDiffusion.hpp
+++ b/src/scheme/FiniteVolumesDiffusion.hpp
@@ -167,8 +167,8 @@ private:
 	double sum2 = 0.;
 	for (int j=0; j<face_nb_cells(l); ++j) {
 	  int cell_here = face_cells(l,j);
-	  sum += Vj(cell_here)*uj(cell_here);
-	  sum2 += Vj(cell_here);
+	  sum += (1./Vj(cell_here))*uj(cell_here);
+	  sum2 += 1./Vj(cell_here);
 	}                
 	 
 	//m_Gl(l) = (1./face_nb_cells(l))*Fl(l)*sum;
-- 
GitLab