Actual source code: ex44.cxx

petsc-3.13.6 2020-09-29
Report Typos and Errors

  2: static char help[] = "Demonstrates call PETSc and Chombo in the same program.\n\n";

  4: /*T
  5:    Concepts: introduction to PETSc^Chombo
  6:    Processors: n
  7: T*/



 11:  #include <petscsys.h>
 12: #include "Box.H"

 14: int main(int argc,char **argv)
 15: {

 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:   PetscInitialize(&argc,&argv,(char*)0,help);if (ierr) return ierr;
 28:   Box::Box *nb = new Box::Box();
 29:   delete nb;

 31:   PetscFinalize();
 32:   return ierr;
 33: }


 36: /*TEST

 38:    build:
 39:       requires: chombo

 41:    test:

 43: TEST*/