Actual source code: dmp8est.c

petsc-3.7.3 2016-08-01
Report Typos and Errors
  1: #include <petscsys.h>
  2: #if defined(PETSC_HAVE_P4EST)
  3: #include <p4est_to_p8est.h>
  4: #endif

  6: static const PetscInt PetscFaceToP4estFace[6] = {4, 5, 2, 3, 1, 0};
  7: static const PetscInt P4estFaceToPetscFace[6] = {5, 4, 2, 3, 0, 1};
  8: static const PetscInt P4estFaceToPetscOrnt[6] = {-4, 0, 0, -1, -4, 0};
  9: static const PetscInt PetscEdgeToP4estEdge[12] = {4, 1, 5, 0, 2, 7, 3, 6, 9, 8, 10, 11};
 10: static const PetscInt P4estEdgeToPetscEdge[12] = {3, 1, 4, 6, 0, 2, 7, 5, 9, 8, 10, 11};
 11: static const PetscInt P4estEdgeToPetscOrnt[12] = {-2, 0, 0, -2, 0, -2, -2, 0, -2, 0, 0, -2};
 12: static const PetscInt PetscVertToP4estVert[8] = {0, 2, 3, 1, 4, 5, 7, 6};
 13: static const PetscInt P4estVertToPetscVert[8] = {0, 3, 1, 2, 4, 5, 7, 6};

 15: #define DMPFOREST DMP8EST

 17: #define _append_pforest(a)  a ## _p8est
 18: #define _infix_pforest(a,b) a ## _p8est ## b
 19:  #include pforest.c