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