[cig-commits] r9331 - in short/3D/PyLith/trunk: libsrc/bc modulesrc/bc pylith/bc
brad at geodynamics.org
brad at geodynamics.org
Wed Feb 13 21:58:26 PST 2008
Author: brad
Date: 2008-02-13 21:58:26 -0800 (Wed, 13 Feb 2008)
New Revision: 9331
Modified:
short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.cc
short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src
short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py
Log:
Removed id from BoundaryCondition (not used).
Modified: short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.cc 2008-02-14 02:07:31 UTC (rev 9330)
+++ short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.cc 2008-02-14 05:58:26 UTC (rev 9331)
@@ -17,7 +17,6 @@
// ----------------------------------------------------------------------
// Default constructor.
pylith::bc::BoundaryCondition::BoundaryCondition(void) :
- _id(0),
_label(""),
_db(0)
{ // constructor
Modified: short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src
===================================================================
--- short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src 2008-02-14 02:07:31 UTC (rev 9330)
+++ short/3D/PyLith/trunk/modulesrc/bc/bc.pyxe.src 2008-02-14 05:58:26 UTC (rev 9331)
@@ -125,54 +125,6 @@
return PyCObject_FromVoidPtr(self.thisptr, BoundaryCondition_destructor)
- property id:
- def __set__(self, value):
- """
- Set identifier of material.
- """
- # create shim for method 'id'
- #embed{ void BoundaryCondition_id_set(void* objVptr, int value)
- try {
- assert(0 != objVptr);
- ((pylith::bc::BoundaryCondition*) objVptr)->id(value);
- } 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
- BoundaryCondition_id_set(self.thisptr, value)
-
- def __get__(self):
- """
- Get identifier of material.
- """
- # create shim for method 'id'
- #embed{ int BoundaryCondition_id_get(void* objVptr)
- int result = 0;
- try {
- assert(0 != objVptr);
- result = ((pylith::bc::BoundaryCondition*) objVptr)->id();
- } 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
- return result;
- #}embed
- return BoundaryCondition_id_get(self.thisptr)
-
-
property label:
def __set__(self, value):
"""
Modified: short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py
===================================================================
--- short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py 2008-02-14 02:07:31 UTC (rev 9330)
+++ short/3D/PyLith/trunk/pylith/bc/BoundaryCondition.py 2008-02-14 05:58:26 UTC (rev 9331)
@@ -63,7 +63,6 @@
## Python object for managing BoundaryCondition facilities and properties.
##
## \b Properties
- ## @li \b id Object face identifier (from mesh generator)
## @li \b name Name identifier for object face
##
## \b Facilities
@@ -71,9 +70,6 @@
import pyre.inventory
- id = pyre.inventory.int("id", default=0)
- id.meta['tip'] = "Object face identifier (from mesh generator)."
-
label = pyre.inventory.str("label", default="")
label.meta['tip'] = "Name identifier for object face."
@@ -107,7 +103,6 @@
Setup boundary condition.
"""
self._createCppHandle()
- self.cppHandle.id = self.id
self.cppHandle.label = self.label
self.mesh = mesh
return
@@ -140,7 +135,6 @@
Setup members using inventory.
"""
Component._configure(self)
- self.id = self.inventory.id
self.label = self.inventory.label
self.upDir = map(float, self.inventory.upDir)
self.db = self.inventory.db
More information about the cig-commits
mailing list