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