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