Actual source code: petscversion.h

      6: /* ========================================================================== */
      7: /*
      8:    Current PETSc version number and release date, also listed in
      9:     Web page
     10:     docs/tex/manual/intro.tex,
     11:     docs/tex/manual/manual.tex.
     12:     docs/website/index.html.
     13: */
     14: #define PETSC_VERSION_MAJOR      2
     15: #define PETSC_VERSION_MINOR      2
     16: #define PETSC_VERSION_SUBMINOR   1
     17: #define PETSC_VERSION_PATCH      23
     18: #define PETSC_VERSION_DATE       "August, 18, 2004"
     19: #define PETSC_VERSION_PATCH_DATE "November, 12, 2004"
     20: #define PETSC_AUTHOR_INFO        "\
     21:        The PETSc Team\n\
     22:     petsc-maint@mcs.anl.gov\n\
     23:  http://www.mcs.anl.gov/petsc/\n"

     25: #define PetscGetVersion(version) (sprintf(*(version),"Petsc Version %d.%d.%d, Patch %d, Released ", \
     26:                                          PETSC_VERSION_MAJOR,PETSC_VERSION_MINOR, PETSC_VERSION_SUBMINOR, \
     27:                                          PETSC_VERSION_PATCH),PetscStrcat(*(version),PETSC_VERSION_DATE),0)

     29: /*M
     30:     PetscGetVersion - Gets the Petsc Version information in a string.

     32:     Output Parameter:
     33: .   version - version string

     35:     Level: developer

     37:     Usage:
     38:     char version[256];
     39:     PetscGetVersion(&version);

     41:     Fortran Note:
     42:     This routine is not supported in Fortran.

     44: .seealso: PetscGetProgramName()

     46: M*/

     49: #endif