[cig-commits] r4770 - short/3D/PyLith/branches/pylith-0.8/pylith3d/module

willic3 at geodynamics.org willic3 at geodynamics.org
Tue Oct 10 08:20:43 PDT 2006


Author: willic3
Date: 2006-10-10 08:20:43 -0700 (Tue, 10 Oct 2006)
New Revision: 4770

Modified:
   short/3D/PyLith/branches/pylith-0.8/pylith3d/module/exceptionhandler.cc
Log:
Added some new exceptions related to root bracketing/finding.


Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/module/exceptionhandler.cc
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/module/exceptionhandler.cc	2006-10-10 13:00:23 UTC (rev 4769)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/module/exceptionhandler.cc	2006-10-10 15:20:43 UTC (rev 4770)
@@ -81,6 +81,8 @@
     case 111: exception = PyExc_ValueError; format = "%s: Load history times are out of order."; break;
     case 112: exception = PyExc_ValueError; format = "%s: Not enough points to define a plane for slippery nodes."; break;
     case 113: exception = PyExc_ValueError; format = "%s: Zero or negative jacobian for element."; break;
+    case 114: exception = PyExc_ValueError; format = "%s: Initial bracketing values are identical."; break;
+    case 115: exception = PyExc_ValueError; format = "%s: Root is not initially bracketed."; break;
     // MemoryErrors
     case 300: exception = PyExc_MemoryError; format = "%s: Insufficient memory assigned."; break;
     // binary I/O
@@ -90,6 +92,8 @@
     case 404: exception = PyExc_RuntimeError; format = "%s: Error writing to binary file."; break;
     case 405: exception = PyExc_RuntimeError; format = "%s: Unexpected 'inquire' result for binary file."; break;
     case 406: exception = PyExc_RuntimeError; format = "%s: Binary data read does not match data written."; break;
+    case 410: exception = PyExc_RuntimeError; format = "%s: Bracketing values not found."; break;
+    case 411: exception = PyExc_RuntimeError; format = "%s: Maximum iterations exceeded."; break;
     // ???
     default: exception = PyExc_RuntimeError; format = "%s: Unknown error."; break;
     }



More information about the cig-commits mailing list