[cig-commits] r17277 - short/3D/PyLith/trunk/libsrc/topology
brad at geodynamics.org
brad at geodynamics.org
Thu Oct 14 18:27:35 PDT 2010
Author: brad
Date: 2010-10-14 18:27:35 -0700 (Thu, 14 Oct 2010)
New Revision: 17277
Modified:
short/3D/PyLith/trunk/libsrc/topology/Field.cc
Log:
Added setting name of section to match field label.
Modified: short/3D/PyLith/trunk/libsrc/topology/Field.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/Field.cc 2010-10-14 23:53:30 UTC (rev 17276)
+++ short/3D/PyLith/trunk/libsrc/topology/Field.cc 2010-10-15 01:27:35 UTC (rev 17277)
@@ -130,6 +130,8 @@
logger.stagePush("Field");
_section = new section_type(_mesh.comm(), _mesh.debug());
+ assert(!_section.isNull());
+ _section->setName(_metadata.label);
logger.stagePop();
} // newSection
@@ -155,6 +157,8 @@
} // if
_section = new section_type(_mesh.comm(), _mesh.debug());
+ assert(!_section.isNull());
+ _section->setName(_metadata.label);
if (points->size() > 0) {
const point_type pointMin =
@@ -189,6 +193,8 @@
} // if
_section = new section_type(_mesh.comm(), _mesh.debug());
+ assert(!_section.isNull());
+ _section->setName(_metadata.label);
const int npts = points.size();
if (npts > 0) {
More information about the CIG-COMMITS
mailing list