[cig-commits] r4628 - short/3D/PyLith/trunk/modulesrc/meshio

baagaard at geodynamics.org baagaard at geodynamics.org
Tue Sep 26 16:23:28 PDT 2006


Author: baagaard
Date: 2006-09-26 16:23:28 -0700 (Tue, 26 Sep 2006)
New Revision: 4628

Modified:
   short/3D/PyLith/trunk/modulesrc/meshio/meshio.pyxe
Log:
Fixed bug where MeshIO had filename property that MeshIOAscii should have.

Modified: short/3D/PyLith/trunk/modulesrc/meshio/meshio.pyxe
===================================================================
--- short/3D/PyLith/trunk/modulesrc/meshio/meshio.pyxe	2006-09-26 22:18:18 UTC (rev 4627)
+++ short/3D/PyLith/trunk/modulesrc/meshio/meshio.pyxe	2006-09-26 23:23:28 UTC (rev 4628)
@@ -96,6 +96,22 @@
     return PyCObject_FromVoidPtr(self.thisptr, MeshIO_destructor)
 
 
+# ----------------------------------------------------------------------
+cdef class MeshIOAscii(MeshIO):
+
+  def __init__(self):
+    """Constructor."""
+    # create shim for constructor
+    #embed{ void* MeshIOAscii_constructor()
+    return (void*)(new pylith::meshio::MeshIOAscii);
+    #}embed
+
+    MeshIO.__init__(self)
+    self.thisptr = MeshIOAscii_constructor()
+    self.handle = self._createHandle()
+    return
+
+
   property filename:
     def __set__(self, name):
       """Set filename."""
@@ -114,20 +130,4 @@
       return MeshIOAscii_filename_get(self.thisptr)
 
 
-# ----------------------------------------------------------------------
-cdef class MeshIOAscii(MeshIO):
-
-  def __init__(self):
-    """Constructor."""
-    # create shim for constructor
-    #embed{ void* MeshIOAscii_constructor()
-    return (void*)(new pylith::meshio::MeshIOAscii);
-    #}embed
-
-    MeshIO.__init__(self)
-    self.thisptr = MeshIOAscii_constructor()
-    self.handle = self._createHandle()
-    return
-
-
 # End of file 



More information about the cig-commits mailing list