Actual source code: dlregis.c

  1: /*$Id: dlregis.c,v 1.19 2001/03/23 23:24:34 balay Exp $*/

 3:  #include petscts.h

  5: EXTERN_C_BEGIN
  6: /*
  7:   PetscDLLibraryRegister - This function is called when the dynamic library it is in is opened.

  9:   This one registers all the TS methods that are in the basic PETSc libpetscts library.

 11:   Input Parameter:
 12:   path - library path
 13:  */
 14: int PetscDLLibraryRegister(char *path)
 15: {

 18:   PetscInitializeNoArguments(); if (ierr) return 1;

 21:   /*
 22:       If we got here then PETSc was properly loaded
 23:   */
 24:   TSRegisterAll(path);
 25:   return(0);
 26: }
 27: EXTERN_C_END

 29: /* --------------------------------------------------------------------------*/
 30: static char *contents = "PETSc timestepping library. n
 31:      Eulern
 32:      Backward Eulern
 33:      PVODE interfacen";

 35:  #include src/sys/src/utils/dlregis.h