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