[cig-commits] r9332 - short/3D/PyLith/trunk/libsrc/bc
brad at geodynamics.org
brad at geodynamics.org
Wed Feb 13 21:58:57 PST 2008
Author: brad
Date: 2008-02-13 21:58:57 -0800 (Wed, 13 Feb 2008)
New Revision: 9332
Modified:
short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.hh
short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.icc
Log:
Removed id from BoundaryCondition (not used).
Modified: short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.hh
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.hh 2008-02-14 05:58:26 UTC (rev 9331)
+++ short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.hh 2008-02-14 05:58:57 UTC (rev 9332)
@@ -60,27 +60,15 @@
virtual
~BoundaryCondition(void);
- /** Set identifier of fault.
+ /** Set label of boundary condition surface.
*
- * @param value BoundaryCondition identifier
+ * @param value Label of surface (from mesh generator).
*/
- void id(const int value);
-
- /** Get identifier of fault.
- *
- * @returns BoundaryCondition identifier
- */
- int id(void) const;
-
- /** Set label of fault.
- *
- * @param value Label of fault
- */
void label(const char* value);
- /** Get label of fault.
+ /** Get label of boundary condition surface.
*
- * @returns Label of fault
+ * @returns Label of surface (from mesh generator).
*/
const std::string& label(void) const;
@@ -112,7 +100,6 @@
// PROTECTED MEMBERS //////////////////////////////////////////////////
protected :
- int _id; ///< BoundaryCondition identifier
std::string _label; ///< Label of boundary condition
spatialdata::spatialdb::SpatialDB* _db; ///< Spatial database w/parameters
Modified: short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.icc
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.icc 2008-02-14 05:58:26 UTC (rev 9331)
+++ short/3D/PyLith/trunk/libsrc/bc/BoundaryCondition.icc 2008-02-14 05:58:57 UTC (rev 9332)
@@ -14,28 +14,14 @@
#error "BoundaryCondition.icc can only be included from BoundaryCondition.hh"
#endif
-// Set identifier of fault.
+// Set name of boundary condition surface.
inline
void
-pylith::bc::BoundaryCondition::id(const int value) {
- _id = value;
-}
-
-// Get identifier of fault.
-inline
-int
-pylith::bc::BoundaryCondition::id(void) const {
- return _id;
-}
-
-// Set name of fault.
-inline
-void
pylith::bc::BoundaryCondition::label(const char* value) {
_label = value;
}
-// Get label of fault.
+// Get label of boundary condition surface.
inline
const std::string&
pylith::bc::BoundaryCondition::label(void) const {
More information about the cig-commits
mailing list