Actual source code: linesearchregi.c
petsc-3.10.5 2019-03-28
Report Typos and Errors

      1:  #include <petsc/private/linesearchimpl.h>

      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);

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

     14:    Not Collective

     16:    Level: advanced

     18: .keywords: SNESLineSearch, register, all

     20: .seealso:  SNESLineSearchRegisterDestroy()
     21: @*/
     22: PetscErrorCode SNESLineSearchRegisterAll(void)
     23: {

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