Actual source code: ex18.c

petsc-3.6.1 2015-08-06
Report Typos and Errors
  2: static char help[] = "Tests PetscContainerCreate() and PetscContainerDestroy().\n\n";

  4: #include <petscsys.h>

  8: int main(int argc,char **argv)
  9: {
 11:   PetscContainer container;

 13:   PetscInitialize(&argc,&argv,(char*)0,help);
 14:   PetscContainerCreate(PETSC_COMM_SELF,&container);
 15:   PetscContainerDestroy(container);
 16:   PetscFinalize();
 17:   return 0;
 18: }