Skip to content
Snippets Groups Projects
Commit 25d2b6b9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

small changes to copy the time values (instead of relying on EndView
to just add the time step number)
parent e433a864
No related branches found
No related tags found
No related merge requests found
// $Id: Harmonic2Time.cpp,v 1.8 2003-11-23 02:56:02 geuzaine Exp $ // $Id: Harmonic2Time.cpp,v 1.9 2004-02-03 22:36:39 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -131,6 +131,9 @@ Post_View *GMSH_Harmonic2TimePlugin::execute(Post_View * v) ...@@ -131,6 +131,9 @@ Post_View *GMSH_Harmonic2TimePlugin::execute(Post_View * v)
if(MIN(rIndex, iIndex) >= 0 && vv->NbTimeStep >= MAX(rIndex, iIndex)) { if(MIN(rIndex, iIndex) >= 0 && vv->NbTimeStep >= MAX(rIndex, iIndex)) {
View = BeginView(1); View = BeginView(1);
harmonic2time(vv, View, rIndex, iIndex, nbSteps); harmonic2time(vv, View, rIndex, iIndex, nbSteps);
// create time data
// FIXME: todo
// finalize
char name[1024], filename[1024]; char name[1024], filename[1024];
sprintf(name, "h2t-%s", vv->Name); sprintf(name, "h2t-%s", vv->Name);
sprintf(filename, "h2t-%s", vv->FileName); sprintf(filename, "h2t-%s", vv->FileName);
......
// $Id: Levelset.cpp,v 1.9 2004-01-25 09:28:28 geuzaine Exp $ // $Id: Levelset.cpp,v 1.10 2004-02-03 22:36:39 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -520,6 +520,9 @@ Post_View *GMSH_LevelsetPlugin::execute(Post_View * v) ...@@ -520,6 +520,9 @@ Post_View *GMSH_LevelsetPlugin::execute(Post_View * v)
executeList(v, v->TY, v->NbTY, 9, w, w->TY, w->NbTY, 9, 5, 8, exnPyr, out); executeList(v, v->TY, v->NbTY, 9, w, w->TY, w->NbTY, 9, 5, 8, exnPyr, out);
for(unsigned int i = 0; i < out.size(); i++) { for(unsigned int i = 0; i < out.size(); i++) {
// create time data
// FIXME: todo
// finalize
char name[1024], filename[1024]; char name[1024], filename[1024];
sprintf(name, "cut-%s-%d", v->Name, i); sprintf(name, "cut-%s-%d", v->Name, i);
sprintf(filename, "cut-%s-%d", v->FileName, i); sprintf(filename, "cut-%s-%d", v->FileName, i);
......
// $Id: Skin.cpp,v 1.21 2003-11-24 21:38:40 geuzaine Exp $ // $Id: Skin.cpp,v 1.22 2004-02-03 22:36:39 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -281,6 +281,10 @@ Post_View *GMSH_SkinPlugin::execute(Post_View * v) ...@@ -281,6 +281,10 @@ Post_View *GMSH_SkinPlugin::execute(Post_View * v)
RemoveViewByNumber(view->Num); RemoveViewByNumber(view->Num);
} }
else{ else{
// copy time data
for(int i = 0; i < List_Nbr(vv->Time); i++)
List_Add(view->Time, List_Pointer(vv->Time, i));
// finalize
char name[1024], filename[1024]; char name[1024], filename[1024];
sprintf(name, "skin-%s", vv->Name); sprintf(name, "skin-%s", vv->Name);
sprintf(filename, "skin-%s", vv->FileName); sprintf(filename, "skin-%s", vv->FileName);
......
// $Id: Triangulate.cpp,v 1.15 2003-11-23 05:41:37 geuzaine Exp $ // $Id: Triangulate.cpp,v 1.16 2004-02-03 22:36:39 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -220,6 +220,10 @@ Post_View *GMSH_TriangulatePlugin::execute(Post_View * v) ...@@ -220,6 +220,10 @@ Post_View *GMSH_TriangulatePlugin::execute(Post_View * v)
if(vv->NbSP > 2) { if(vv->NbSP > 2) {
View = BeginView(1); View = BeginView(1);
Triangulate(vv, View); Triangulate(vv, View);
// copy time data
for(int i = 0; i < List_Nbr(vv->Time); i++)
List_Add(View->Time, List_Pointer(vv->Time, i));
// finalize
char name[1024], filename[1024]; char name[1024], filename[1024];
sprintf(name, "triangulate-%s", vv->Name); sprintf(name, "triangulate-%s", vv->Name);
sprintf(filename, "triangulate-%s", vv->FileName); sprintf(filename, "triangulate-%s", vv->FileName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment