On 12 July 2016 at 16:37, Hensgens, Marius <[email protected]> wrote: > how can I change the used line search method after setting the SNES Type to > 'newtonls' using petsc4py ? >
Right now, you can either use the command line or programatically insert an option in the database opts = PETSc.Options() opts['snes_linesearch_type'] = lstype ... snes.setFromOptions() > In the official PETSc documentation there is a function called > SNESLineSearchSetType, however in petsc4py I can't find an equivalent > function. The SNESLineSearch type and related routines are not wrapped yet. -- Lisandro Dalcin ============ Research Scientist Computer, Electrical and Mathematical Sciences & Engineering (CEMSE) Extreme Computing Research Center (ECRC) King Abdullah University of Science and Technology (KAUST) http://ecrc.kaust.edu.sa/ 4700 King Abdullah University of Science and Technology al-Khawarizmi Bldg (Bldg 1), Office # 0109 Thuwal 23955-6900, Kingdom of Saudi Arabia http://www.kaust.edu.sa Office Phone: +966 12 808-0459
