Date: 2022-03-31T04:48:40+00:00

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);
     24: PETSC_EXTERN PetscErrorCode TSCreate_IRK(TS);

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

     29:   Not Collective

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

     34:   Level: advanced

     36: .seealso: TSCreate(), TSRegister(), TSRegisterDestroy()
     37: @*/
     38: PetscErrorCode  TSRegisterAll(void)
     39: {
     40:   if (TSRegisterAllCalled) return 0;
     41:   TSRegisterAllCalled = PETSC_TRUE;

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