Lines Matching refs:quad
2544 p4est_quadrant_t *quad = &fineQuads[i]; in DMPforestGetTransferSF_Point() local
2550 PetscCallP4estReturn(disjoint, p4est_quadrant_disjoint, (quadCoarse, quad)); in DMPforestGetTransferSF_Point()
2554 …if (quadCoarse->level > quad->level || (quadCoarse->level == quad->level && !transferIdent)) { /* … in DMPforestGetTransferSF_Point()
2563 … PetscCallP4est(p4est_quadrant_corner_descendant, (quad, &cornerQuad, j, quadCoarse->level)); in DMPforestGetTransferSF_Point()
2580 PetscCallP4estReturn(disjoint, p4est_quadrant_disjoint, (quadCoarse, quad)); in DMPforestGetTransferSF_Point()
2586 if (quadCoarse->level == quad->level) { /* same quad present in coarse and fine mesh */ in DMPforestGetTransferSF_Point()
2596 PetscInt levelDiff = quad->level - quadCoarse->level; in DMPforestGetTransferSF_Point()
2605 PetscCallP4estReturn(cid, p4est_quadrant_child_id, (quad)); in DMPforestGetTransferSF_Point()
2657 {quad->x, quad->y, in DMPforestGetTransferSF_Point()
2659 quad->z in DMPforestGetTransferSF_Point()
2667 fineBound[1][j] = fineBound[0][j] + P4EST_QUADRANT_LEN(quad->level); in DMPforestGetTransferSF_Point()
3070 p4est_quadrant_t *quad = &quads[q]; in DMPforestLabelsInitialize() local
3077 PetscCallP4est(p4est_quadrant_face_neighbor, (quad, f, &neigh)); in DMPforestLabelsInitialize()
3797 p4est_quadrant_t *quad = &ghosts[count]; in DMPforestMapCoordinates() local
3798 p4est_topidx_t t = quad->p.which_tree; in DMPforestMapCoordinates()
3800 … PetscCall(DMPforestMapCoordinates_Cell(plex, geom, count, quad, t, pforest->topo->conn, coords)); in DMPforestMapCoordinates()
3821 p4est_quadrant_t *quad = &ghosts[count + cLocalStart]; in DMPforestMapCoordinates() local
3822 p4est_topidx_t t = quad->p.which_tree; in DMPforestMapCoordinates()
3824 …PetscCall(DMPforestMapCoordinates_Cell(plex, geom, count + cLocalEnd, quad, t, pforest->topo->conn… in DMPforestMapCoordinates()
3832 static PetscErrorCode PforestQuadrantIsInterior(p4est_quadrant_t *quad, PetscBool *is_interior) in PforestQuadrantIsInterior() argument
3835 p4est_qcoord_t h = P4EST_QUADRANT_LEN(quad->level); in PforestQuadrantIsInterior()
3836 if ((quad->x > 0) && (quad->x + h < P4EST_ROOT_LEN) in PforestQuadrantIsInterior()
3838 && (quad->z > 0) && (quad->z + h < P4EST_ROOT_LEN) in PforestQuadrantIsInterior()
3840 && (quad->y > 0) && (quad->y + h < P4EST_ROOT_LEN)) { in PforestQuadrantIsInterior()
3850 …n oldSection, PetscSection newSection, PetscInt cell, PetscInt coarsePoint, p4est_quadrant_t *quad) in PforestCheckLocalizeCell() argument
3855 PetscCall(PforestQuadrantIsInterior(quad, &is_interior)); in PforestCheckLocalizeCell()
3868 p4est_qcoord_t h = P4EST_QUADRANT_LEN(quad->level); in PforestCheckLocalizeCell()
3875 quad_coords[0] = quad->x; in PforestCheckLocalizeCell()
3876 quad_coords[1] = quad->y; in PforestCheckLocalizeCell()
3878 quad_coords[2] = quad->z; in PforestCheckLocalizeCell()
3905 …ection newSection, PetscInt cell, PetscInt coarsePoint, p4est_quadrant_t *quad, PetscScalar coords… in PforestLocalizeCell() argument
3916 p4est_qcoord_t h = P4EST_QUADRANT_LEN(quad->level); in PforestLocalizeCell()
3920 quad_coords[0] = quad->x; in PforestLocalizeCell()
3921 quad_coords[1] = quad->y; in PforestLocalizeCell()
3923 quad_coords[2] = quad->z; in PforestLocalizeCell()
3989 p4est_quadrant_t *quad = &ghosts[cell]; in DMPforestLocalizeCoordinates() local
3991 coarsePoint = quad->p.which_tree; in DMPforestLocalizeCoordinates()
3992 …tCheckLocalizeCell(plex, cDim, cVecOld, pforest, oldSection, newSection, cell, coarsePoint, quad)); in DMPforestLocalizeCoordinates()
4006 p4est_quadrant_t *quad = &quads[i]; in DMPforestLocalizeCoordinates() local
4008 …tCheckLocalizeCell(plex, cDim, cVecOld, pforest, oldSection, newSection, cell, coarsePoint, quad)); in DMPforestLocalizeCoordinates()
4017 p4est_quadrant_t *quad = &ghosts[count + cLocalStart]; in DMPforestLocalizeCoordinates() local
4018 coarsePoint = quad->p.which_tree; in DMPforestLocalizeCoordinates()
4021 …tCheckLocalizeCell(plex, cDim, cVecOld, pforest, oldSection, newSection, cell, coarsePoint, quad)); in DMPforestLocalizeCoordinates()
4048 p4est_quadrant_t *quad = &ghosts[cell]; in DMPforestLocalizeCoordinates() local
4050 coarsePoint = quad->p.which_tree; in DMPforestLocalizeCoordinates()
4051 … PetscCall(PforestLocalizeCell(plex, cDim, pforest, newSection, cell, coarsePoint, quad, coords2)); in DMPforestLocalizeCoordinates()
4065 p4est_quadrant_t *quad = &quads[i]; in DMPforestLocalizeCoordinates() local
4067 … PetscCall(PforestLocalizeCell(plex, cDim, pforest, newSection, cell, coarsePoint, quad, coords2)); in DMPforestLocalizeCoordinates()
4076 p4est_quadrant_t *quad = &ghosts[count + cLocalStart]; in DMPforestLocalizeCoordinates() local
4077 coarsePoint = quad->p.which_tree; in DMPforestLocalizeCoordinates()
4080 … PetscCall(PforestLocalizeCell(plex, cDim, pforest, newSection, cell, coarsePoint, quad, coords2)); in DMPforestLocalizeCoordinates()