[cig-commits] r13839 - cs/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Mon Jan 12 14:10:08 PST 2009


Author: luis
Date: 2009-01-12 14:10:07 -0800 (Mon, 12 Jan 2009)
New Revision: 13839

Modified:
   cs/cigma/trunk/src/Filesystem.cpp
   cs/cigma/trunk/src/Filesystem.h
Log:
Add extension for CUBIT mesh files (.exo since they use the ExodusII file format)

Modified: cs/cigma/trunk/src/Filesystem.cpp
===================================================================
--- cs/cigma/trunk/src/Filesystem.cpp	2009-01-12 22:10:06 UTC (rev 13838)
+++ cs/cigma/trunk/src/Filesystem.cpp	2009-01-12 22:10:07 UTC (rev 13839)
@@ -11,6 +11,13 @@
     return (fileExt == ".h5") || (fileExt == ".hdf5");
 }
 
+bool is_exo_extension(const char *ext)
+{
+    assert(ext != 0);
+    string fileExt = ext;
+    return (fileExt == ".exo") || (fileExt == ".exo2");
+}
+
 bool is_vtk_extension(const char *ext)
 {
     assert(ext != 0);

Modified: cs/cigma/trunk/src/Filesystem.h
===================================================================
--- cs/cigma/trunk/src/Filesystem.h	2009-01-12 22:10:06 UTC (rev 13838)
+++ cs/cigma/trunk/src/Filesystem.h	2009-01-12 22:10:07 UTC (rev 13839)
@@ -20,7 +20,9 @@
  *
  */
 
+// XXX: make these into cigma::DataFile static methods
 bool is_hdf5_extension(const char *ext);
+bool is_exo_extension(const char *ext);
 bool is_vtk_extension(const char *ext);
 bool is_text_extension(const char *ext);
 



More information about the CIG-COMMITS mailing list