Lines Matching refs:quadrants

429 …pforest_coarsen_currlevel(p4est_t *p4est, p4est_topidx_t which_tree, p4est_quadrant_t *quadrants[])  in pforest_coarsen_currlevel()  argument
435 if (quadrants[0]->level <= minLevel) return 0; in pforest_coarsen_currlevel()
436 return (int)((PetscInt)quadrants[0]->level == currLevel); in pforest_coarsen_currlevel()
439 …t pforest_coarsen_uniform(p4est_t *p4est, p4est_topidx_t which_tree, p4est_quadrant_t *quadrants[]) in pforest_coarsen_uniform() argument
444 return (int)((PetscInt)quadrants[0]->level > minLevel); in pforest_coarsen_uniform()
447 … pforest_coarsen_flag_any(p4est_t *p4est, p4est_topidx_t which_tree, p4est_quadrant_t *quadrants[]) in pforest_coarsen_flag_any() argument
454 if (quadrants[0]->level <= minLevel) return 0; in pforest_coarsen_flag_any()
456 if (quadrants[i]->p.user_int == DM_ADAPT_KEEP) { in pforest_coarsen_flag_any()
460 if (quadrants[i]->p.user_int == DM_ADAPT_COARSEN) { in pforest_coarsen_flag_any()
468 … pforest_coarsen_flag_all(p4est_t *p4est, p4est_topidx_t which_tree, p4est_quadrant_t *quadrants[]) in pforest_coarsen_flag_all() argument
475 if (quadrants[0]->level <= minLevel) return 0; in pforest_coarsen_flag_all()
477 if (quadrants[i]->p.user_int != DM_ADAPT_COARSEN) { in pforest_coarsen_flag_all()
523 PetscInt numFrom = (PetscInt)treeFrom->quadrants.elem_count; in DMPforestComputeLocalCellTransferSF_loop()
524 PetscInt numTo = (PetscInt)treeTo->quadrants.elem_count; in DMPforestComputeLocalCellTransferSF_loop()
525 p4est_quadrant_t *quadsFrom = (p4est_quadrant_t *)treeFrom->quadrants.array; in DMPforestComputeLocalCellTransferSF_loop()
526 p4est_quadrant_t *quadsTo = (p4est_quadrant_t *)treeTo->quadrants.array; in DMPforestComputeLocalCellTransferSF_loop()
927 PetscInt numQuads = (PetscInt)tree->quadrants.elem_count, i; in DMSetUp_pforest()
928 p4est_quadrant_t *quads = (p4est_quadrant_t *)tree->quadrants.array; in DMSetUp_pforest()
948 PetscInt anumQuads = (PetscInt)atree->quadrants.elem_count, i; in DMSetUp_pforest()
949 PetscInt numQuads = (PetscInt)tree->quadrants.elem_count; in DMSetUp_pforest()
950 p4est_quadrant_t *aquads = (p4est_quadrant_t *)atree->quadrants.array; in DMSetUp_pforest()
951 p4est_quadrant_t *quads = (p4est_quadrant_t *)tree->quadrants.array; in DMSetUp_pforest()
2204 if (treeStart->quadrants.elem_count) { in DMPforestGetCellCoveringSF()
2205 …PetscCallP4estReturn(overlapIndex, sc_array_bsearch, (&treeStart->quadrants, myFineStart, p4est_qu… in DMPforestGetCellCoveringSF()
2214 if (treeEnd && treeEnd->quadrants.elem_count) { in DMPforestGetCellCoveringSF()
2215 …PetscCallP4estReturn(overlapIndex, sc_array_bsearch, (&treeEnd->quadrants, myFineEnd, p4est_quadra… in DMPforestGetCellCoveringSF()
2219 … p4est_quadrant_t *container = &(((p4est_quadrant_t *)treeEnd->quadrants.array)[overlapIndex]); in DMPforestGetCellCoveringSF()
2456 …PetscCall(PetscMemcpy(&coverQuadsSend[count], tree->quadrants.array, tree->quadrants.elem_count * … in DMPforestGetTransferSF_Point()
2457 …for (q = 0; (size_t)q < tree->quadrants.elem_count; q++) coverQuadsSend[count + q].p.which_tree = … in DMPforestGetTransferSF_Point()
2458 count += tree->quadrants.elem_count; in DMPforestGetTransferSF_Point()
2492 treeQuadCounts[t - fltF] = (PetscInt)tree->quadrants.elem_count; in DMPforestGetTransferSF_Point()
2493 treeQuads[t - fltF] = (p4est_quadrant_t *)tree->quadrants.array; in DMPforestGetTransferSF_Point()
2533 PetscInt numFineQuads = (PetscInt)tree->quadrants.elem_count; in DMPforestGetTransferSF_Point()
2535 p4est_quadrant_t *fineQuads = (p4est_quadrant_t *)tree->quadrants.array; in DMPforestGetTransferSF_Point()
3065 p4est_quadrant_t *quads = (p4est_quadrant_t *)tree->quadrants.array; in DMPforestLabelsInitialize()
3066 PetscInt numQuads = (PetscInt)tree->quadrants.elem_count; in DMPforestLabelsInitialize()
3235 } else if (c < tree->quadrants_offset + (PetscInt)tree->quadrants.elem_count) { in DMPforestLabelsInitialize()
3236 q = &((p4est_quadrant_t *)tree->quadrants.array)[c - (PetscInt)tree->quadrants_offset]; in DMPforestLabelsInitialize()
3764 … >= tree->quadrants_offset && (size_t)cell < tree->quadrants_offset + tree->quadrants.elem_count) { in DMPforestMapCoordinates()
3806 PetscInt numQuads = (PetscInt)tree->quadrants.elem_count; in DMPforestMapCoordinates()
3807 p4est_quadrant_t *quads = (p4est_quadrant_t *)tree->quadrants.array; in DMPforestMapCoordinates()
3998 PetscInt numQuads = (PetscInt)tree->quadrants.elem_count; in DMPforestLocalizeCoordinates()
3999 p4est_quadrant_t *quads = (p4est_quadrant_t *)tree->quadrants.array; in DMPforestLocalizeCoordinates()
4057 PetscInt numQuads = (PetscInt)tree->quadrants.elem_count; in DMPforestLocalizeCoordinates()
4058 p4est_quadrant_t *quads = (p4est_quadrant_t *)tree->quadrants.array; in DMPforestLocalizeCoordinates()