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