xref: /petsc/src/sys/tests/ex44.cxx (revision a69119a591a03a9d906b29c0a4e9802e4d7c9795)
1 
2 static char help[] = "Demonstrates call PETSc and Chombo in the same program.\n\n";
3 
4 #include <petscsys.h>
5 #include "Box.H"
6 
7 int main(int argc, char **argv) {
8   /*
9     Every PETSc routine should begin with the PetscInitialize() routine.
10     argc, argv - These command line arguments are taken to extract the options
11                  supplied to PETSc and options supplied to MPI.
12     help       - When PETSc executable is invoked with the option -help,
13                  it prints the various options that can be applied at
14                  runtime.  The user can use the "help" variable place
15                  additional help messages in this printout.
16   */
17   PetscFunctionBeginUser;
18   PetscCall(PetscInitialize(&argc, &argv, (char *)0, help));
19   Box::Box *nb = new Box::Box();
20   delete nb;
21 
22   PetscCall(PetscFinalize());
23   return 0;
24 }
25 
26 /*TEST
27 
28    build:
29       requires: chombo
30 
31    test:
32 
33 TEST*/
34