Actual source code: ex1.c

  1: #include "../src/dm/impls/forest/p4est/petsc_p4est_package.h"

  3: static char help[] = "Test interaction with p4est/libsc error and logging routines\n";

  5: int main(int argc, char **argv)
  6: {
  7:   PetscFunctionBeginUser;
  8:   PetscCall(PetscInitialize(&argc, &argv, NULL, help));
  9:   PetscCall(PetscP4estInitialize());
 10:   PetscCallP4est(sc_abort_verbose, (__FILE__, __LINE__, "Abort in main()\n"));
 11:   PetscCall(PetscFinalize());
 12:   return 0;
 13: }