[cig-commits] r7363 - short/3D/PyLith/trunk/libsrc/topology
brad at geodynamics.org
brad at geodynamics.org
Thu Jun 21 16:20:35 PDT 2007
Author: brad
Date: 2007-06-21 16:20:35 -0700 (Thu, 21 Jun 2007)
New Revision: 7363
Modified:
short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc
Log:
Added checking for empty solution name when requesting solution.
Modified: short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc 2007-06-21 22:49:01 UTC (rev 7362)
+++ short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc 2007-06-21 23:20:35 UTC (rev 7363)
@@ -227,6 +227,9 @@
const ALE::Obj<pylith::real_section_type>&
pylith::topology::FieldsManager::getSolution(void)
{ // getSolution
+ if (_solutionName == "")
+ throw std::runtime_error("Cannot retrieve solution. Name of solution " \
+ "field has not been specified.");
return getReal(_solutionName.c_str());
} // getSolution
More information about the cig-commits
mailing list