diff --git a/Geo/Print_Geo.cpp b/Geo/Print_Geo.cpp index 2589f9b7500c84b677605fb16bcf1019b2ff580e..6f8b91db62a9f0e5667743be5e6e0a472c299cd1 100644 --- a/Geo/Print_Geo.cpp +++ b/Geo/Print_Geo.cpp @@ -1,10 +1,11 @@ -/* $Id: Print_Geo.cpp,v 1.6 2000-11-26 15:43:45 geuzaine Exp $ */ +/* $Id: Print_Geo.cpp,v 1.7 2000-12-05 15:47:04 geuzaine Exp $ */ #include "Gmsh.h" #include "Geo.h" #include "Mesh.h" #include "Vertex.h" #include "CAD.h" +#include "Context.h" FILE *FOUT; @@ -172,6 +173,7 @@ void Print_Geo(Mesh *M, char *filename){ else FOUT = stdout; + Print_Context(FOUT); Tree_Action(M->Points,Print_Point); Tree_Action(M->Curves,Print_Curve); Tree_Action(M->Surfaces,Print_Surface); diff --git a/Unix/Main.cpp b/Unix/Main.cpp index b9126b904ad329fe3e3a2fa33c19d763a2894c2f..ddb8f1ff5f0e01127346a1c67cb6268086dae7f0 100644 --- a/Unix/Main.cpp +++ b/Unix/Main.cpp @@ -1,4 +1,4 @@ -/* $Id: Main.cpp,v 1.16 2000-12-05 15:23:58 geuzaine Exp $ */ +/* $Id: Main.cpp,v 1.17 2000-12-05 15:47:07 geuzaine Exp $ */ #include <signal.h> @@ -581,10 +581,8 @@ int main(int argc, char *argv[]){ mai3d(THEM, CTX.interactive); Print_Mesh(THEM,NULL,CTX.mesh.format); } - else{ - Print_Context(stdout); + else Print_Geo(THEM, NULL); - } exit(1); } }