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