Actual source code: PLogEvent.c
2: #include petsc.h
6: int main(int argc,char **argv)
7: {
8: PetscLogDouble x,y;
9: int e1,ierr;
10: PetscTruth flg;
12: PetscInitialize(&argc,&argv,0,0);
14: /* To take care of the paging effects */
15: PetscGetTime(&x);
19: PetscGetTime(&x);
20: /* 10 Occurences of the dummy event */
42: PetscGetTime(&y);
45: if(PetscOptionsHasName(PETSC_NULL,"-log",&flg),flg) fprintf(stderr,"-log ");
46: if(PetscOptionsHasName(PETSC_NULL,"-log_all",&flg),flg) fprintf(stderr,"-log_all ");
47: if(PetscOptionsHasName(PETSC_NULL,"-log_summary",&flg),flg) fprintf(stderr,"-log_summary ");
48: if(PetscOptionsHasName(PETSC_NULL,"-log_mpe",&flg),flg) fprintf(stderr,"-log_mpe ");
49:
50: fprintf(stderr,"\n");
52: PetscFinalize();
53: return(0);
54: }