Actual source code: tsregall.c


  2: #include <petsc/private/tsimpl.h>
  3: PETSC_EXTERN PetscErrorCode TSCreate_Euler(TS);
  4: PETSC_EXTERN PetscErrorCode TSCreate_BEuler(TS);
  5: PETSC_EXTERN PetscErrorCode TSCreate_Pseudo(TS);
  6: PETSC_EXTERN PetscErrorCode TSCreate_Sundials(TS);
  7: PETSC_EXTERN PetscErrorCode TSCreate_Radau5(TS);
  8: PETSC_EXTERN PetscErrorCode TSCreate_CN(TS);
  9: PETSC_EXTERN PetscErrorCode TSCreate_Theta(TS);
 10: PETSC_EXTERN PetscErrorCode TSCreate_Alpha(TS);
 11: PETSC_EXTERN PetscErrorCode TSCreate_Alpha2(TS);
 12: PETSC_EXTERN PetscErrorCode TSCreate_GLLE(TS);
 13: PETSC_EXTERN PetscErrorCode TSCreate_SSP(TS);
 14: PETSC_EXTERN PetscErrorCode TSCreate_RK(TS);
 15: PETSC_EXTERN PetscErrorCode TSCreate_ARKIMEX(TS);
 16: PETSC_EXTERN PetscErrorCode TSCreate_RosW(TS);
 17: PETSC_EXTERN PetscErrorCode TSCreate_EIMEX(TS);
 18: PETSC_EXTERN PetscErrorCode TSCreate_Mimex(TS);
 19: PETSC_EXTERN PetscErrorCode TSCreate_BDF(TS);
 20: PETSC_EXTERN PetscErrorCode TSCreate_GLEE(TS);
 21: PETSC_EXTERN PetscErrorCode TSCreate_BasicSymplectic(TS);
 22: PETSC_EXTERN PetscErrorCode TSCreate_MPRK(TS);
 23: PETSC_EXTERN PetscErrorCode TSCreate_DiscGrad(TS);

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

 28:   Not Collective

 30:   Input parameter:
 31: . path - The dynamic library path

 33:   Level: advanced

 35: .seealso: TSCreate(), TSRegister(), TSRegisterDestroy()
 36: @*/
 37: PetscErrorCode  TSRegisterAll(void)
 38: {

 42:   if (TSRegisterAllCalled) return(0);
 43:   TSRegisterAllCalled = PETSC_TRUE;

 45:   TSRegister(TSEULER,          TSCreate_Euler);
 46:   TSRegister(TSBEULER,         TSCreate_BEuler);
 47:   TSRegister(TSCN,             TSCreate_CN);
 48:   TSRegister(TSPSEUDO,         TSCreate_Pseudo);
 49:   TSRegister(TSGLLE,           TSCreate_GLLE);
 50:   TSRegister(TSSSP,            TSCreate_SSP);
 51:   TSRegister(TSTHETA,          TSCreate_Theta);
 52:   TSRegister(TSALPHA,          TSCreate_Alpha);
 53:   TSRegister(TSALPHA2,         TSCreate_Alpha2);
 54: #if defined(PETSC_HAVE_SUNDIALS2)
 55:   TSRegister(TSSUNDIALS,       TSCreate_Sundials);
 56: #endif
 57: #if defined(PETSC_HAVE_RADAU5)
 58:   TSRegister(TSRADAU5,         TSCreate_Radau5);
 59: #endif
 60:   TSRegister(TSRK,             TSCreate_RK);
 61:   TSRegister(TSGLEE,           TSCreate_GLEE);
 62:   TSRegister(TSARKIMEX,        TSCreate_ARKIMEX);
 63:   TSRegister(TSROSW,           TSCreate_RosW);
 64:   TSRegister(TSEIMEX,          TSCreate_EIMEX);
 65:   TSRegister(TSMIMEX,          TSCreate_Mimex);
 66:   TSRegister(TSBDF,            TSCreate_BDF);
 67:   TSRegister(TSBASICSYMPLECTIC,TSCreate_BasicSymplectic);
 68:   TSRegister(TSMPRK,           TSCreate_MPRK);
 69:   TSRegister(TSDISCGRAD,       TSCreate_DiscGrad);
 70:   return(0);
 71: }