[cig-commits] r20856 - short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/problems

brad at geodynamics.org brad at geodynamics.org
Fri Oct 19 08:48:48 PDT 2012


Author: brad
Date: 2012-10-19 08:48:48 -0700 (Fri, 19 Oct 2012)
New Revision: 20856

Modified:
   short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/problems/SolverNonlinear.cc
Log:
Set default order for line search.

Modified: short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/problems/SolverNonlinear.cc
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/problems/SolverNonlinear.cc	2012-10-19 14:07:15 UTC (rev 20855)
+++ short/3D/PyLith/branches/v1.7-trunk/libsrc/pylith/problems/SolverNonlinear.cc	2012-10-19 15:48:48 UTC (rev 20856)
@@ -107,6 +107,7 @@
   PetscSNESLineSearch ls;
   err = SNESGetSNESLineSearch(_snes, &ls);CHECK_PETSC_ERROR(err);
   err = SNESLineSearchSetType(ls, SNESSHELL);CHECK_PETSC_ERROR(err);
+  err = SNESLineSearchSetOrder(ls, SNES_LINESEARCH_ORDER_CUBIC);CHECK_PETSC_ERROR(err);
   err = SNESLineSearchShellSetUserFunc(ls, lineSearch, (void*) formulation);CHECK_PETSC_ERROR(err);
 
   // Get SNES options and allow the user to override the line search type



More information about the CIG-COMMITS mailing list