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