[cig-commits] r7338 - short/3D/PyLith/trunk/modulesrc/topology
brad at geodynamics.org
brad at geodynamics.org
Wed Jun 20 19:59:17 PDT 2007
Author: brad
Date: 2007-06-20 19:59:17 -0700 (Wed, 20 Jun 2007)
New Revision: 7338
Modified:
short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src
Log:
Added changes clobbered in bad update.
Modified: short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src
===================================================================
--- short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src 2007-06-21 02:39:26 UTC (rev 7337)
+++ short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src 2007-06-21 02:59:17 UTC (rev 7338)
@@ -261,6 +261,32 @@
return PyCObject_FromVoidPtr(ptr, PetscMat_destructor)
+ def view(self):
+ """
+ View the mesh.
+ """
+ # create shim for view
+ #embed{ void* Mesh_view(void* objVptr)
+ try {
+ ALE::Obj<ALE::Mesh>* mesh = (ALE::Obj<ALE::Mesh>*) objVptr;
+ assert(0 != mesh);
+ assert(!mesh->isNull());
+ (*mesh)->view("");
+ } 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
+ Mesh_view(self.thisptr)
+ return
+
+
def _createHandle(self):
"""
Wrap pointer to C++ object in PyCObject.
More information about the cig-commits
mailing list