Actual source code: tsregall.c

      1: #define PETSCTS_DLL

     3:  #include src/ts/tsimpl.h
      5: EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSCreate_Euler(TS);
      6: EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSCreate_BEuler(TS);
      7: EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSCreate_Pseudo(TS);
      8: EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSCreate_PVode(TS);
      9: EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSCreate_CN(TS);
     10: EXTERN PetscErrorCode PETSCTS_DLLEXPORT 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 PETSCTS_DLLEXPORT 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_PVODE)
     40:   TSRegisterDynamic(TS_PVODE,           path, "TSCreate_PVode", TSCreate_PVode);
     41: #endif
     42:   TSRegisterDynamic(TS_RUNGE_KUTTA,     path, "TSCreate_Rk", TSCreate_Rk);
     43:   return(0);
     44: }