From 30b04e7cde2c0d287796cd0458b0dc6bc01b84e1 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 24 Nov 2000 09:43:53 +0000
Subject: [PATCH] unititialized vars

---
 Mesh/2D_Util.cpp   | 4 +++-
 Mesh/3D_BGMesh.cpp | 4 ++--
 Mesh/3D_Bricks.cpp | 3 ++-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Mesh/2D_Util.cpp b/Mesh/2D_Util.cpp
index 69a7d9f94b..a8d9ed1efd 100644
--- a/Mesh/2D_Util.cpp
+++ b/Mesh/2D_Util.cpp
@@ -1,4 +1,4 @@
-/* $Id: 2D_Util.cpp,v 1.4 2000-11-23 23:20:35 geuzaine Exp $ */
+/* $Id: 2D_Util.cpp,v 1.5 2000-11-24 09:43:53 geuzaine Exp $ */
 
 #include "Gmsh.h"
 #include "Const.h"
@@ -338,6 +338,8 @@ MPoint Localize (Delaunay * del , DocRecord *MESH) {
     return(pt);
   }
 
+  pt.h = 0.0;
+  pt.v = 0.0;
   return pt;
 
 }
diff --git a/Mesh/3D_BGMesh.cpp b/Mesh/3D_BGMesh.cpp
index 8dbacc380d..6e0f1ad22a 100644
--- a/Mesh/3D_BGMesh.cpp
+++ b/Mesh/3D_BGMesh.cpp
@@ -1,4 +1,4 @@
-/* $Id: 3D_BGMesh.cpp,v 1.6 2000-11-23 23:20:35 geuzaine Exp $ */
+/* $Id: 3D_BGMesh.cpp,v 1.7 2000-11-24 09:43:53 geuzaine Exp $ */
 
 #include "Gmsh.h"
 #include "Mesh.h"
@@ -152,7 +152,7 @@ int BGMWithView (Post_View * ErrView){
       v->Pos.Z = t.Z[j];
       if (0 /*Tree_Query(Pts,&v) */ ){
 	/* Corriger la Lc pour lissage */
-	ver[j] = v;
+	//ver[j] = v;
       }
       else{
 	v = Create_Vertex (k++, t.X[j], t.Y[j], t.Z[j]
diff --git a/Mesh/3D_Bricks.cpp b/Mesh/3D_Bricks.cpp
index a5138cbb25..64c2fe3653 100644
--- a/Mesh/3D_Bricks.cpp
+++ b/Mesh/3D_Bricks.cpp
@@ -1,4 +1,4 @@
-/* $Id: 3D_Bricks.cpp,v 1.3 2000-11-23 17:16:38 geuzaine Exp $ */
+/* $Id: 3D_Bricks.cpp,v 1.4 2000-11-24 09:43:53 geuzaine Exp $ */
 
 #include "Gmsh.h"
 #include "Const.h"
@@ -9,6 +9,7 @@ Brick LaBrique (Grid_T * pGrid, double X, double Y, double Z){
   Brick B;
 
   B.N = -1;
+  B.pT = NULL;
   if (X > pGrid->max.X || X < pGrid->min.X || Y > pGrid->max.Y ||
       Y < pGrid->min.Y || Z > pGrid->max.Z || Z < pGrid->min.Z){
     return (B);
-- 
GitLab