From 5494d7fffefcc2d58b63440324129ad1e6dde073 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 7 Sep 2006 05:04:38 +0000 Subject: [PATCH] better fix --- Geo/Geo.cpp | 3 ++- Geo/fourierModel.cpp | 2 ++ Geo/gmshModel.cpp | 6 +----- Parser/OpenFile.cpp | 4 +++- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Geo/Geo.cpp b/Geo/Geo.cpp index 268c55c3db..047b8ec485 100644 --- a/Geo/Geo.cpp +++ b/Geo/Geo.cpp @@ -1,4 +1,4 @@ -// $Id: Geo.cpp,v 1.56 2006-08-18 18:00:42 geuzaine Exp $ +// $Id: Geo.cpp,v 1.57 2006-09-07 05:04:38 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -106,6 +106,7 @@ void add_infile(char *text, char *fich, bool deleted_something) GMODEL->destroy(); } GMODEL->import(); + CTX.mesh.changed = ENT_ALL; } void coherence(char *fich) diff --git a/Geo/fourierModel.cpp b/Geo/fourierModel.cpp index 87bc3efed9..8d90236ff6 100644 --- a/Geo/fourierModel.cpp +++ b/Geo/fourierModel.cpp @@ -161,6 +161,8 @@ fourierModel::fourierModel(const std::string &name) // visualize as a post-pro view std::for_each(firstFace(), lastFace(), exportFourierFace()); + + CTX.mesh.changed = ENT_ALL; } diff --git a/Geo/gmshModel.cpp b/Geo/gmshModel.cpp index d5586ec0a5..b2288ea93f 100644 --- a/Geo/gmshModel.cpp +++ b/Geo/gmshModel.cpp @@ -1,4 +1,4 @@ -// $Id: gmshModel.cpp,v 1.16 2006-09-07 04:54:55 geuzaine Exp $ +// $Id: gmshModel.cpp,v 1.17 2006-09-07 05:04:38 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -24,14 +24,12 @@ #include "Geo.h" #include "Tools.h" #include "Message.h" -#include "Context.h" #include "gmshVertex.h" #include "gmshFace.h" #include "gmshEdge.h" #include "gmshRegion.h" extern Mesh *THEM; -extern Context_T CTX; void gmshModel::import() { @@ -122,6 +120,4 @@ void gmshModel::import() Msg(DEBUG, "%d Edges", edges.size()); Msg(DEBUG, "%d Faces", faces.size()); Msg(DEBUG, "%d Regions", regions.size()); - - CTX.mesh.changed = ENT_ALL; } diff --git a/Parser/OpenFile.cpp b/Parser/OpenFile.cpp index 214c2fbfd9..ec7a05f835 100644 --- a/Parser/OpenFile.cpp +++ b/Parser/OpenFile.cpp @@ -1,4 +1,4 @@ -// $Id: OpenFile.cpp,v 1.122 2006-09-07 04:54:55 geuzaine Exp $ +// $Id: OpenFile.cpp,v 1.123 2006-09-07 05:04:38 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -341,6 +341,8 @@ int MergeProblem(char *name, int warn_if_missing) SetBoundingBox(); + CTX.mesh.changed = ENT_ALL; + Msg(STATUS2, "Read '%s'", name); return status; } -- GitLab