xref: /petsc/src/sys/tests/ex9.c (revision 5ebfa9e9f88b822c006efbb9b0cb198b91a2e84d)
1 static char help[] = "Tests PetscSequentialPhaseBegin() and PetscSequentialPhaseEnd()\n";
2 
3 #include <petscsys.h>
4 
5 int main(int argc, char **args)
6 {
7   PetscFunctionBeginUser;
8   PetscCall(PetscInitialize(&argc, &args, NULL, help));
9   PetscCall(PetscSequentialPhaseBegin(PETSC_COMM_WORLD, 1));
10   PetscCall(PetscSequentialPhaseEnd(PETSC_COMM_WORLD, 1));
11   PetscCall(PetscFinalize());
12   return 0;
13 }
14 
15 /*TEST
16 
17    test:
18       nsize: 2
19       output_file: output/empty.out
20 
21 TEST*/
22