Actual source code: ex6.c


  2: static char help[] = "Example of using PetscLikely() and PetscUnlikely().\n\n";

  4: #include <petscsys.h>

  6: int main(int argc,char **argv)
  7: {
  8:   PetscBool      flg = PETSC_TRUE;

 10:   PetscInitialize(&argc,&argv,(char*)0,help);
 11:   if (PetscLikely(flg)) {
 12:     /* do something */
 13:   }
 14:   if (PetscUnlikely(flg)) {
 15:     /* do something */
 16:   }
 17:   PetscFinalize();
 18:   return 0;
 19: }

 21: /*TEST

 23:    test:

 25: TEST*/