Date: 2013-07-02T14:39:25+00:00

Actual source code: ex24.c
petsc-3.4.2 2013-07-02

      1: static char help[] = "Tests %D and %G formatting\n";
      2: #include <petscsys.h>

      7: int main(int argc,char **argv)
      8: {

     11:   PetscInitialize(&argc,&argv,(char*)0,help);
     12:   PetscPrintf(PETSC_COMM_WORLD,"A string followed by integer %D\n",22);
     13:   PetscPrintf(PETSC_COMM_WORLD,"A string followed by double %5G another %G\n",23.2,11.3);
     14:   PetscPrintf(PETSC_COMM_WORLD,"and then an int %D\n",30);

     16:   PetscFinalize();
     17:   return 0;
     18: }