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