[cig-commits] r9340 - short/3D/PyLith/trunk/modulesrc/bc

brad at geodynamics.org brad at geodynamics.org
Thu Feb 14 10:50:26 PST 2008


Author: brad
Date: 2008-02-14 10:50:25 -0800 (Thu, 14 Feb 2008)
New Revision: 9340

Modified:
   short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src
Log:
Fixed bugs related to getting fields out of Neumann.

Modified: short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src
===================================================================
--- short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src	2008-02-14 18:48:13 UTC (rev 9339)
+++ short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src	2008-02-14 18:50:25 UTC (rev 9340)
@@ -907,68 +907,6 @@
     return
 
 
-  def verifyConfiguration(self, mesh):
-    """
-    Verify compatibility of configuration settings.
-    """
-    # create shim for method 'verifyConfiguration'
-    #embed{ void Neumann_verifyConfiguration(void* objVptr, void* meshVptr)
-    try {
-      assert(0 != objVptr);
-      assert(0 != meshVptr);
-      ALE::Obj<ALE::Mesh>* mesh =
-        (ALE::Obj<ALE::Mesh>*) meshVptr;
-      ((pylith::bc::Neumann*) objVptr)->verifyConfiguration(*mesh);
-    } catch (const std::exception& err) {
-      PyErr_SetString(PyExc_RuntimeError,
-                      const_cast<char*>(err.what()));
-    } catch (const ALE::Exception& err) {
-      PyErr_SetString(PyExc_RuntimeError,
-                      const_cast<char*>(err.msg().c_str()));
-    } catch (...) {
-      PyErr_SetString(PyExc_RuntimeError,
-                      "Caught unknown C++ exception.");
-    } // try/catch
-    #}embed
-    if mesh.name != "pylith_topology_Mesh":
-      raise TypeError, \
-            "Argument 'mesh' must be extension module type 'Mesh'."
-    Neumann_verifyConfiguration(self.thisptr,
-                                   ptrFromHandle(mesh))
-    return
-
-
-  def cellField(self, name, mesh):
-    """
-    Verify compatibility of configuration settings.
-    """
-    # create shim for method 'verifyConfiguration'
-    #embed{ void Neumann_verifyConfiguration(void* objVptr, void* meshVptr)
-    try {
-      assert(0 != objVptr);
-      assert(0 != meshVptr);
-      ALE::Obj<ALE::Mesh>* mesh =
-        (ALE::Obj<ALE::Mesh>*) meshVptr;
-      ((pylith::bc::Neumann*) objVptr)->verifyConfiguration(*mesh);
-    } catch (const std::exception& err) {
-      PyErr_SetString(PyExc_RuntimeError,
-                      const_cast<char*>(err.what()));
-    } catch (const ALE::Exception& err) {
-      PyErr_SetString(PyExc_RuntimeError,
-                      const_cast<char*>(err.msg().c_str()));
-    } catch (...) {
-      PyErr_SetString(PyExc_RuntimeError,
-                      "Caught unknown C++ exception.");
-    } // try/catch
-    #}embed
-    if mesh.name != "pylith_topology_Mesh":
-      raise TypeError, \
-            "Argument 'mesh' must be extension module type 'Mesh'."
-    Neumann_verifyConfiguration(self.thisptr,
-                                   ptrFromHandle(mesh))
-    return
-
-
   def boundaryMesh(self, mesh):
     """
     Get mesh associated with fields over boundary.



More information about the cig-commits mailing list