Actual source code: linesearchregi.c

petsc-3.7.3 2016-08-01
Report Typos and Errors
  1: #include <petsc/private/linesearchimpl.h>     /*I  "petscsnes.h"  I*/

  3: PETSC_EXTERN PetscErrorCode SNESLineSearchCreate_Basic(SNESLineSearch);
  4: PETSC_EXTERN PetscErrorCode SNESLineSearchCreate_L2(SNESLineSearch);
  5: PETSC_EXTERN PetscErrorCode SNESLineSearchCreate_CP(SNESLineSearch);
  6: PETSC_EXTERN PetscErrorCode SNESLineSearchCreate_BT(SNESLineSearch);
  7: PETSC_EXTERN PetscErrorCode SNESLineSearchCreate_NLEQERR(SNESLineSearch);
  8: PETSC_EXTERN PetscErrorCode SNESLineSearchCreate_Shell(SNESLineSearch);


 13: /*@C
 14:    SNESLineSearchRegisterAll - Registers all of the nonlinear solver methods in the SNESLineSearch package.

 16:    Not Collective

 18:    Level: advanced

 20: .keywords: SNESLineSearch, register, all

 22: .seealso:  SNESLineSearchRegisterDestroy()
 23: @*/
 24: PetscErrorCode SNESLineSearchRegisterAll(void)
 25: {

 29:   if (SNESLineSearchRegisterAllCalled) return(0);
 30:   SNESLineSearchRegisterAllCalled = PETSC_TRUE;
 31:   SNESLineSearchRegister(SNESLINESEARCHSHELL,   SNESLineSearchCreate_Shell);
 32:   SNESLineSearchRegister(SNESLINESEARCHBASIC,   SNESLineSearchCreate_Basic);
 33:   SNESLineSearchRegister(SNESLINESEARCHL2,      SNESLineSearchCreate_L2);
 34:   SNESLineSearchRegister(SNESLINESEARCHBT,      SNESLineSearchCreate_BT);
 35:   SNESLineSearchRegister(SNESLINESEARCHNLEQERR, SNESLineSearchCreate_NLEQERR);
 36:   SNESLineSearchRegister(SNESLINESEARCHCP,      SNESLineSearchCreate_CP);
 37:   return(0);
 38: }