1 #include <petscsys.h> 2 #if defined(PETSC_HAVE_P4EST) 3 #include <p4est_to_p8est.h> 4 #endif 5 6 static const PetscInt PetscFaceToP4estFace[6] = {4, 5, 2, 3, 1, 0}; 7 static const PetscInt P4estFaceToPetscOrnt[6] = {-4, 0, 0, -1, 4, 0}; 8 static const PetscInt PetscEdgeToP4estEdge[12] = {4, 1, 5, 0, 2, 7, 3, 6, 9, 8, 10, 11}; 9 static const PetscInt P4estEdgeToPetscOrnt[12] = {-2, 0, 0, -2, 0, -2, -2, 0, -2, 0, 0, -2}; 10 static const PetscInt PetscVertToP4estVert[8] = {0, 2, 3, 1, 4, 5, 7, 6}; 11 12 #define DMPFOREST DMP8EST 13 14 #define _append_pforest(a) a ## _p8est 15 #define _infix_pforest(a,b) a ## _p8est ## b 16 #include "pforest.c" 17