From 93fd92527b9ef8e7b8de8b423f03d458833a47ed Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 21 May 2007 09:02:39 +0000 Subject: [PATCH] additional patch from oshima@eng.niigata-u.ac.jp --- Plugin/StreamLines.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Plugin/StreamLines.cpp b/Plugin/StreamLines.cpp index c8c39013d2..cae46780a6 100644 --- a/Plugin/StreamLines.cpp +++ b/Plugin/StreamLines.cpp @@ -1,4 +1,4 @@ -// $Id: StreamLines.cpp,v 1.27 2007-05-19 22:01:27 geuzaine Exp $ +// $Id: StreamLines.cpp,v 1.28 2007-05-21 09:02:39 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -299,7 +299,9 @@ Post_View * GMSH_StreamLinesPlugin::GenerateView(int iView, int dView) const double XPREV[3] = { X[0], X[1], X[2] }; if(timestep < 0){ - const double currentT = DT * iter; + double T0 = List_Nbr(v1->Time) ? *(double*)List_Pointer(v1->Time, 0) : 0.; + double currentT = T0 + DT * iter; + List_Add(View->Time, ¤tT); for(; currentTimeStep < v1->NbTimeStep - 1 && currentT > 0.5 * (*(double*)List_Pointer(v1->Time, currentTimeStep) + *(double*)List_Pointer(v1->Time, currentTimeStep + 1)); -- GitLab