From b55410e3605f6a55a187eb8790fa1358b1e9e89f Mon Sep 17 00:00:00 2001 From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be> Date: Mon, 25 Jun 2001 15:24:12 +0000 Subject: [PATCH] *** empty log message *** --- Mesh/3D_Mesh.cpp | 7 ++++++- Mesh/Generator.cpp | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Mesh/3D_Mesh.cpp b/Mesh/3D_Mesh.cpp index 5a95271f34..6874a0d620 100644 --- a/Mesh/3D_Mesh.cpp +++ b/Mesh/3D_Mesh.cpp @@ -1,4 +1,4 @@ -// $Id: 3D_Mesh.cpp,v 1.21 2001-06-25 15:22:26 remacle Exp $ +// $Id: 3D_Mesh.cpp,v 1.22 2001-06-25 15:24:12 remacle Exp $ /* @@ -714,6 +714,9 @@ void Maillage_Volume (void *data, void *dum){ double uvw[3]; int i; + // WE SHOULD ALLOCATE THESE GUYS HERE AND NOT IN Bowyer_Watson + // MEMORY BUG -JF + Simplexes_New = List_Create (10, 10, sizeof (Simplex *)); Simplexes_Destroyed = List_Create (10, 10, sizeof (Simplex *)); @@ -877,6 +880,8 @@ void Maillage_Volume (void *data, void *dum){ Eta_Maillage (THEM, &THEM->Statistics[20], &THEM->Statistics[21], &THEM->Statistics[22]); R_Maillage (THEM, &THEM->Statistics[23], &THEM->Statistics[24], &THEM->Statistics[25]); } + // WE SHOULD DESALLOCATE THESE GUYS HERE AND NOT NOWHERE ;-) + // MEMORY BUG -JF List_Delete(Simplexes_New); List_Delete(Simplexes_Destroyed); } diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp index b884eb77bc..85ee825d87 100644 --- a/Mesh/Generator.cpp +++ b/Mesh/Generator.cpp @@ -1,4 +1,4 @@ -// $Id: Generator.cpp,v 1.22 2001-06-25 13:30:57 remacle Exp $ +// $Id: Generator.cpp,v 1.23 2001-06-25 15:22:26 remacle Exp $ #include "Gmsh.h" #include "Const.h" @@ -230,6 +230,12 @@ void mai3d (Mesh * M, int Asked){ (Asked < oldstatus && Asked > 0)){ Msg(STATUS2, "Mesh 1D..."); t1 = Cpu(); + + if(M->status > 1) + { + OpenProblem (CTX.filename); + } + Maillage_Dimension_1 (M); t2 = Cpu(); Msg(STATUS2, "Mesh 1D complete (%g s)", t2 - t1); -- GitLab