[MOAB-dev] r3135 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Sep 11 08:53:51 CDT 2009


Author: kraftche
Date: 2009-09-11 08:53:51 -0500 (Fri, 11 Sep 2009)
New Revision: 3135

Modified:
   MOAB/trunk/WriteVtk.cpp
Log:
in vtk file comment line, print actual MOAB version rather than API version

Modified: MOAB/trunk/WriteVtk.cpp
===================================================================
--- MOAB/trunk/WriteVtk.cpp	2009-09-04 21:46:34 UTC (rev 3134)
+++ MOAB/trunk/WriteVtk.cpp	2009-09-11 13:53:51 UTC (rev 3135)
@@ -41,6 +41,7 @@
 #include "MBWriteUtilIface.hpp"
 #include "MBInternals.hpp"
 #include "FileOptions.hpp"
+#include "MBVersion.h"
 
 #define INS_ID(stringvar, prefix, id) \
 sprintf(stringvar, prefix, id)
@@ -215,7 +216,7 @@
 MBErrorCode WriteVtk::write_header( std::ostream& stream )
 {
   stream << "# vtk DataFile Version 3.0" << std::endl;
-  stream << "MOAB Version " << MOAB_API_VERSION_STRING << std::endl;
+  stream << MB_VERSION_STRING << std::endl;
   stream << "ASCII" << std::endl;
   stream << "DATASET UNSTRUCTURED_GRID" << std::endl;
   return MB_SUCCESS;



More information about the moab-dev mailing list