[cig-commits] r8332 - short/3D/PyLith/trunk/libsrc/materials
brad at geodynamics.org
brad at geodynamics.org
Mon Nov 26 10:49:53 PST 2007
Author: brad
Date: 2007-11-26 10:49:53 -0800 (Mon, 26 Nov 2007)
New Revision: 8332
Modified:
short/3D/PyLith/trunk/libsrc/materials/Material.cc
Log:
Fixed bug in displaying coordintes of point in error message.
Modified: short/3D/PyLith/trunk/libsrc/materials/Material.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/materials/Material.cc 2007-11-26 18:01:59 UTC (rev 8331)
+++ short/3D/PyLith/trunk/libsrc/materials/Material.cc 2007-11-26 18:49:53 UTC (rev 8332)
@@ -176,14 +176,15 @@
++iQuadPt, index+=spaceDim) {
const int err = _db->query(&queryData[0], numValues, &quadPts[index],
spaceDim, cs);
+
if (err) {
std::ostringstream msg;
msg << "Could not find parameters for physical properties at \n"
<< "(";
for (int i=0; i < spaceDim; ++i)
- msg << " " << quadPts[index+spaceDim];
+ msg << " " << quadPts[index+i];
msg << ") in material " << _label << "\n"
- << "using spatial database " << _db->label() << ".";
+ << "using spatial database '" << _db->label() << "'.";
throw std::runtime_error(msg.str());
} // if
_dbToParameters(¶mData, queryData);
More information about the cig-commits
mailing list