[cig-commits] r8314 - short/3D/PyLith/trunk/libsrc/feassemble

brad at geodynamics.org brad at geodynamics.org
Wed Nov 21 14:32:24 PST 2007


Author: brad
Date: 2007-11-21 14:32:23 -0800 (Wed, 21 Nov 2007)
New Revision: 8314

Modified:
   short/3D/PyLith/trunk/libsrc/feassemble/ElasticityExplicit.cc
Log:
Fixed bug where logic_error exception was thrown in ElasticityExplicit::useSolnIncr even if not using solution increment. Only throw exception if requesting incremental solution, which is currently no supported.

Modified: short/3D/PyLith/trunk/libsrc/feassemble/ElasticityExplicit.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/feassemble/ElasticityExplicit.cc	2007-11-21 20:53:34 UTC (rev 8313)
+++ short/3D/PyLith/trunk/libsrc/feassemble/ElasticityExplicit.cc	2007-11-21 22:32:23 UTC (rev 8314)
@@ -64,9 +64,10 @@
 void
 pylith::feassemble::ElasticityExplicit::useSolnIncr(const bool flag)
 { // useSolnIncr
-  throw std::logic_error("Incremental solution not supported for "
-			 "explicit time integration of elasticity "
-			 "equation.");
+  if (flag)
+    throw std::logic_error("Incremental solution not supported for "
+			   "explicit time integration of elasticity "
+			   "equation.");
 } // useSolnIncr
 
 // ----------------------------------------------------------------------



More information about the cig-commits mailing list