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_Shell(SNESLineSearch); 12: /*@C 13: SNESLineSearchRegisterAll - Registers all of the nonlinear solver methods in the SNESLineSearch package. 15: Not Collective 17: Level: advanced 19: .keywords: SNESLineSearch, register, all 21: .seealso: SNESLineSearchRegisterDestroy() 22: @*/ 23: PetscErrorCode SNESLineSearchRegisterAll(void) 24: { 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(SNESLINESEARCHCP, SNESLineSearchCreate_CP); 34: return(0); 35: }