[cig-commits] r19076 - short/3D/PyLith/branches/v1.6-stable/libsrc/pylith/faults
brad at geodynamics.org
brad at geodynamics.org
Fri Oct 14 16:57:46 PDT 2011
Author: brad
Date: 2011-10-14 16:57:46 -0700 (Fri, 14 Oct 2011)
New Revision: 19076
Modified:
short/3D/PyLith/branches/v1.6-stable/libsrc/pylith/faults/FaultCohesiveDyn.cc
Log:
Fixed bug in friction sensitivity solve. Increased zero tolerance and decreased friction sensitivity relative and absolute solver tolerances. This insures that the sensitivity solve errors are smaller than the zero tolerance. This helps avoid line search problems.
Modified: short/3D/PyLith/branches/v1.6-stable/libsrc/pylith/faults/FaultCohesiveDyn.cc
===================================================================
--- short/3D/PyLith/branches/v1.6-stable/libsrc/pylith/faults/FaultCohesiveDyn.cc 2011-10-14 19:41:22 UTC (rev 19075)
+++ short/3D/PyLith/branches/v1.6-stable/libsrc/pylith/faults/FaultCohesiveDyn.cc 2011-10-14 23:57:46 UTC (rev 19076)
@@ -60,7 +60,7 @@
typedef ALE::ISieveVisitor::IndicesVisitor<RealSection,SieveSubMesh::order_type,PetscInt> IndicesVisitor;
// ----------------------------------------------------------------------
-const double pylith::faults::FaultCohesiveDyn::_zeroTolerance = 1.0e-12;
+const double pylith::faults::FaultCohesiveDyn::_zeroTolerance = 1.0e-10;
// ----------------------------------------------------------------------
// Default constructor.
@@ -1582,8 +1582,8 @@
int maxIters = 0;
err = KSPGetTolerances(_ksp, &rtol, &atol, &dtol, &maxIters);
CHECK_PETSC_ERROR(err);
- rtol = _zeroTolerance;
- atol = 0.001*_zeroTolerance;
+ rtol = 1.0e-2*_zeroTolerance;
+ atol = 1.0e-5*_zeroTolerance;
err = KSPSetTolerances(_ksp, rtol, atol, dtol, maxIters);
CHECK_PETSC_ERROR(err);
More information about the CIG-COMMITS
mailing list