Actual source code: tsregall.c

petsc-master 2020-09-18
Report Typos and Errors

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

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

 27:   Not Collective

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

 32:   Level: advanced

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

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

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