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