Actual source code: tsregall.c

  1: #define PETSCTS_DLL

 3:  #include include/private/tsimpl.h
  5: EXTERN PetscErrorCode  TSCreate_Euler(TS);
  6: EXTERN PetscErrorCode  TSCreate_BEuler(TS);
  7: EXTERN PetscErrorCode  TSCreate_Pseudo(TS);
  8: EXTERN PetscErrorCode  TSCreate_Sundials(TS);
  9: EXTERN PetscErrorCode  TSCreate_CN(TS);
 10: EXTERN PetscErrorCode  TSCreate_Rk(TS);

 15: /*@C
 16:   TSRegisterAll - Registers all of the timesteppers in the TS package. 

 18:   Not Collective

 20:   Input parameter:
 21: . path - The dynamic library path

 23:   Level: advanced

 25: .keywords: TS, timestepper, register, all
 26: .seealso: TSCreate(), TSRegister(), TSRegisterDestroy(), TSRegisterDynamic()
 27: @*/
 28: PetscErrorCode  TSRegisterAll(const char path[])
 29: {

 33:   TSRegisterAllCalled = PETSC_TRUE;

 35:   TSRegisterDynamic(TS_EULER,           path, "TSCreate_Euler", TSCreate_Euler);
 36:   TSRegisterDynamic(TS_BEULER,          path, "TSCreate_BEuler",TSCreate_BEuler);
 37:   TSRegisterDynamic(TS_CRANK_NICHOLSON, path, "TSCreate_CN", TSCreate_CN);
 38:   TSRegisterDynamic(TS_PSEUDO,          path, "TSCreate_Pseudo", TSCreate_Pseudo);
 39: #if defined(PETSC_HAVE_SUNDIALS)
 40:   TSRegisterDynamic(TS_SUNDIALS,           path, "TSCreate_Sundials", TSCreate_Sundials);
 41: #endif
 42:   TSRegisterDynamic(TS_RUNGE_KUTTA,     path, "TSCreate_Rk", TSCreate_Rk);
 43:   return(0);
 44: }