1: static char help[] = "Demonstrates call PETSc and Chombo in the same program.\n\n"; 3: #include <petscsys.h> 4: #include "Box.H" 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, (char *)0, help)); 19: Box::Box *nb = new Box::Box(); 20: delete nb; 22: PetscCall(PetscFinalize()); 23: return 0; 24: } 26: /*TEST 28: build: 29: requires: chombo 31: test: 33: TEST*/