[cig-commits] [commit] knepley/upgrade-petsc-interface: Update to SNESGetLineSearch() from SNESGetSNESLineSearch(). (b7e83fd)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 13 10:24:59 PST 2013


Repository : ssh://geoshell/pylith

On branch  : knepley/upgrade-petsc-interface
Link       : https://github.com/geodynamics/pylith/compare/04bbef4ac1ec975b2a6c6ed2654a704c68181176...b7e83fd9f67f543c74ba982334728fbecb75380b

>---------------------------------------------------------------

commit b7e83fd9f67f543c74ba982334728fbecb75380b
Author: Brad Aagaard <baagaard at usgs.gov>
Date:   Wed Nov 13 10:27:36 2013 -0800

    Update to SNESGetLineSearch() from SNESGetSNESLineSearch().


>---------------------------------------------------------------

b7e83fd9f67f543c74ba982334728fbecb75380b
 libsrc/pylith/problems/SolverNonlinear.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsrc/pylith/problems/SolverNonlinear.cc b/libsrc/pylith/problems/SolverNonlinear.cc
index 2e3ce48..02606ad 100644
--- a/libsrc/pylith/problems/SolverNonlinear.cc
+++ b/libsrc/pylith/problems/SolverNonlinear.cc
@@ -107,7 +107,7 @@ pylith::problems::SolverNonlinear::initialize(const topology::SolutionFields& fi
 
   // Set default line search type to SNESSHELL and use our custom line search
   PetscSNESLineSearch ls;
-  err = SNESGetSNESLineSearch(_snes, &ls);PYLITH_CHECK_ERROR(err);
+  err = SNESGetLineSearch(_snes, &ls);PYLITH_CHECK_ERROR(err);
   err = SNESLineSearchSetType(ls, SNESSHELL);PYLITH_CHECK_ERROR(err);
   err = SNESLineSearchSetOrder(ls, SNES_LINESEARCH_ORDER_CUBIC);PYLITH_CHECK_ERROR(err);
   err = SNESLineSearchShellSetUserFunc(ls, lineSearch, (void*) formulation);PYLITH_CHECK_ERROR(err);



More information about the CIG-COMMITS mailing list