xref: /petsc/src/sys/tests/ex44.cxx (revision ebead697dbf761eb322f829370bbe90b3bd93fa3)
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 
10   /*
11     Every PETSc routine should begin with the PetscInitialize() routine.
12     argc, argv - These command line arguments are taken to extract the options
13                  supplied to PETSc and options supplied to MPI.
14     help       - When PETSc executable is invoked with the option -help,
15                  it prints the various options that can be applied at
16                  runtime.  The user can use the "help" variable place
17                  additional help messages in this printout.
18   */
19   PetscFunctionBeginUser;
20   PetscCall(PetscInitialize(&argc,&argv,(char*)0,help));
21   Box::Box *nb = new Box::Box();
22   delete nb;
23 
24   PetscCall(PetscFinalize());
25   return 0;
26 }
27 
28 /*TEST
29 
30    build:
31       requires: chombo
32 
33    test:
34 
35 TEST*/
36