Actual source code: snesregi.c

 2:  #include src/snes/snesimpl.h

  5: EXTERN PetscErrorCode SNESCreate_LS(SNES);
  6: EXTERN PetscErrorCode SNESCreate_TR(SNES);
  7: EXTERN PetscErrorCode SNESCreate_Test(SNES);
  9: 
 10: /*
 11:       This is used by SNESSetType() to make sure that at least one 
 12:     SNESRegisterAll() is called. In general, if there is more than one
 13:     DLL then SNESRegisterAll() may be called several times.
 14: */

 19: /*@C
 20:    SNESRegisterAll - Registers all of the nonlinear solver methods in the SNES package.

 22:    Not Collective

 24:    Level: advanced

 26: .keywords: SNES, register, all

 28: .seealso:  SNESRegisterDestroy()
 29: @*/
 30: PetscErrorCode SNESRegisterAll(const char path[])
 31: {

 35:   SNESRegisterAllCalled = PETSC_TRUE;

 37:   SNESRegisterDynamic("ls",   path,"SNESCreate_LS",SNESCreate_LS);
 38:   SNESRegisterDynamic("tr",   path,"SNESCreate_TR",SNESCreate_TR);
 39:   SNESRegisterDynamic("test", path,"SNESCreate_Test", SNESCreate_Test);

 41:   return(0);
 42: }