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