From e3124b7b0e9c1fce4fd5633d825f875489c3a48f Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 2 May 2011 13:09:13 +0000
Subject: [PATCH] add fix to remember time step bug

---
 Common/CreateFile.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Common/CreateFile.cpp b/Common/CreateFile.cpp
index 7235f67df2..c83066c564 100644
--- a/Common/CreateFile.cpp
+++ b/Common/CreateFile.cpp
@@ -460,6 +460,8 @@ void CreateOutputFile(std::string fileName, int format)
         break;
       }
       int numViews = (int)opt_post_nb_views(0, GMSH_GET, 0), numSteps = 0;
+
+      // FIXME: this does not handle empty time steps!
       for(int i = 0; i < numViews; i++){
         if(opt_view_visible(i, GMSH_GET, 0))
           numSteps = std::max(numSteps, (int)opt_view_nb_timestep(i, GMSH_GET, 0));
-- 
GitLab