yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00610
[svn] r1503 - trunk/core
Author: cosurgi
Date: 2008-09-03 04:02:15 +0200 (Wed, 03 Sep 2008)
New Revision: 1503
Modified:
trunk/core/NullGUI.cpp
Log:
fixed snaphotNames in NullGUI for .xml.gz
Modified: trunk/core/NullGUI.cpp
===================================================================
--- trunk/core/NullGUI.cpp 2008-09-03 01:36:10 UTC (rev 1502)
+++ trunk/core/NullGUI.cpp 2008-09-03 02:02:15 UTC (rev 1503)
@@ -151,7 +151,9 @@
cerr << "Using timestep: " << Omega::instance().getTimeStep() << endl;
filesystem::path p(snapshotName);
- snapshotName = filesystem::basename(p);
+ if(filesystem::extension(p)==".gz")
+ p = filesystem::basename(p); // get rid of .gz
+ snapshotName = filesystem::basename(p); // get rid of .xml
if( snapshotInterval != -1 )
cerr << "Saving snapshot every " << snapshotInterval*interval << " iterations, \n"
<< "to filename: " << snapshotName << "_[0-9]" << endl;