[cig-commits] r9089 - in short/3D/PyLith/trunk/modulesrc: bc faults

willic3 at geodynamics.org willic3 at geodynamics.org
Thu Jan 17 13:48:53 PST 2008


Author: willic3
Date: 2008-01-17 13:48:53 -0800 (Thu, 17 Jan 2008)
New Revision: 9089

Modified:
   short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src
   short/3D/PyLith/trunk/modulesrc/faults/faults.pyxe.src
Log:
Changed bindings back to the way they were.
Fix for type mismatch in lists is done in Python code instead.



Modified: short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src
===================================================================
--- short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src	2008-01-17 21:46:35 UTC (rev 9088)
+++ short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src	2008-01-17 21:48:53 UTC (rev 9089)
@@ -111,9 +111,9 @@
       raise TypeError, \
             "Argument 'upDir' must be a 3 vector (list)."
     cdef double upDirCpp[3]
-    upDirCpp[0] = float(upDir[0])
-    upDirCpp[1] = float(upDir[1])
-    upDirCpp[2] = float(upDir[2])
+    upDirCpp[0] = upDir[0]
+    upDirCpp[1] = upDir[1]
+    upDirCpp[2] = upDir[2]
     BoundaryCondition_initialize(self.thisptr, ptrFromHandle(mesh), ptrFromHandle(cs), upDirCpp)
     return
 

Modified: short/3D/PyLith/trunk/modulesrc/faults/faults.pyxe.src
===================================================================
--- short/3D/PyLith/trunk/modulesrc/faults/faults.pyxe.src	2008-01-17 21:46:35 UTC (rev 9088)
+++ short/3D/PyLith/trunk/modulesrc/faults/faults.pyxe.src	2008-01-17 21:48:53 UTC (rev 9089)
@@ -175,13 +175,13 @@
             "Argument 'matDB' must be extension module type " \
             "'spatialdata::spatialdb::SpatialDB'."
     cdef double upDirCpp[3]
-    upDirCpp[0] = float(upDir[0])
-    upDirCpp[1] = float(upDir[1])
-    upDirCpp[2] = float(upDir[2])
+    upDirCpp[0] = upDir[0]
+    upDirCpp[1] = upDir[1]
+    upDirCpp[2] = upDir[2]
     cdef double normalDirCpp[3]
-    normalDirCpp[0] = float(normalDir[0])
-    normalDirCpp[1] = float(normalDir[1])
-    normalDirCpp[2] = float(normalDir[2])
+    normalDirCpp[0] = normalDir[0]
+    normalDirCpp[1] = normalDir[1]
+    normalDirCpp[2] = normalDir[2]
     Fault_initialize(self.thisptr, ptrFromHandle(mesh), ptrFromHandle(cs),
                      upDirCpp, normalDirCpp, ptrFromHandle(matDB))
     return



More information about the cig-commits mailing list