Lines Matching refs:forest

179   p4est_t             *forest;  member
384 DM_Forest *forest = (DM_Forest *)dm->data; in DMForestDestroy_pforest() local
385 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMForestDestroy_pforest()
393 if (pforest->forest) PetscCallP4est(p4est_destroy, (pforest->forest)); in DMForestDestroy_pforest()
394 pforest->forest = NULL; in DMForestDestroy_pforest()
402 PetscCall(PetscFree(forest->data)); in DMForestDestroy_pforest()
591 DM_Forest *forest = (DM_Forest *)dm->data; in DMPforestGetRefinementLevel() local
592 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMPforestGetRefinementLevel()
598 PetscCheck(pforest->forest, PetscObjectComm((PetscObject)dm), PETSC_ERR_PLIB, "Missing p4est_t"); in DMPforestGetRefinementLevel()
599 p4est = pforest->forest; in DMPforestGetRefinementLevel()
705 DM_Forest *forest = (DM_Forest *)dm->data; in DMSetUp_pforest() local
706 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMSetUp_pforest()
864 flt = apforest->forest->first_local_tree; in DMSetUp_pforest()
865 llt = apforest->forest->last_local_tree; in DMSetUp_pforest()
868 …PetscCallP4estReturn(pforest->forest, p4est_copy, (apforest->forest, 0)); /* 0 indicates no data c… in DMSetUp_pforest()
878 pforest->forest->user_pointer = (void *)&ctx; in DMSetUp_pforest()
879 PetscCallP4est(p4est_coarsen, (pforest->forest, 0, pforest_coarsen_currlevel, NULL)); in DMSetUp_pforest()
880 pforest->forest->user_pointer = (void *)dm; in DMSetUp_pforest()
881 PetscCallP4est(p4est_balance, (pforest->forest, P4EST_CONNECT_FULL, NULL)); in DMSetUp_pforest()
883 …LocalCellTransferSF(PetscObjectComm((PetscObject)dm), pforest->forest, 0, apforest->forest, apfore… in DMSetUp_pforest()
886 pforest->forest->user_pointer = (void *)&ctx; in DMSetUp_pforest()
887 PetscCallP4est(p4est_coarsen, (pforest->forest, 0, pforest_coarsen_uniform, NULL)); in DMSetUp_pforest()
888 pforest->forest->user_pointer = (void *)dm; in DMSetUp_pforest()
889 PetscCallP4est(p4est_balance, (pforest->forest, P4EST_CONNECT_FULL, NULL)); in DMSetUp_pforest()
891 …LocalCellTransferSF(PetscObjectComm((PetscObject)dm), pforest->forest, 0, apforest->forest, apfore… in DMSetUp_pforest()
894 pforest->forest->user_pointer = (void *)&ctx; in DMSetUp_pforest()
895 PetscCallP4est(p4est_refine, (pforest->forest, 0, pforest_refine_uniform, NULL)); in DMSetUp_pforest()
896 pforest->forest->user_pointer = (void *)dm; in DMSetUp_pforest()
897 PetscCallP4est(p4est_balance, (pforest->forest, P4EST_CONNECT_FULL, NULL)); in DMSetUp_pforest()
899 …ansferSF(PetscObjectComm((PetscObject)dm), apforest->forest, apforest->cLocalStart, pforest->fores… in DMSetUp_pforest()
901 p4est_t *p4est = pforest->forest; in DMSetUp_pforest()
937 pforest->forest->user_pointer = (void *)&ctx; in DMSetUp_pforest()
938 …if (adaptAny) PetscCallP4est(p4est_coarsen, (pforest->forest, 0, pforest_coarsen_flag_any, pforest… in DMSetUp_pforest()
939 …else PetscCallP4est(p4est_coarsen, (pforest->forest, 0, pforest_coarsen_flag_all, pforest_init_det… in DMSetUp_pforest()
940 PetscCallP4est(p4est_refine, (pforest->forest, 0, pforest_refine_flag, NULL)); in DMSetUp_pforest()
941 pforest->forest->user_pointer = (void *)dm; in DMSetUp_pforest()
942 PetscCallP4est(p4est_balance, (pforest->forest, P4EST_CONNECT_FULL, NULL)); in DMSetUp_pforest()
943 …ansferSF(PetscObjectComm((PetscObject)dm), apforest->forest, apforest->cLocalStart, pforest->fores… in DMSetUp_pforest()
946 p4est_tree_t *atree = &(((p4est_tree_t *)apforest->forest->trees->array)[t]); in DMSetUp_pforest()
947 p4est_tree_t *tree = &(((p4est_tree_t *)pforest->forest->trees->array)[t]); in DMSetUp_pforest()
1005 PetscCallP4estReturn(pforest->forest, p4est_new_ext, in DMSetUp_pforest()
1066 pforest->forest->user_pointer = (void *)ctx; in DMSetUp_pforest()
1067 PetscCallP4est(p4est_refine, (pforest->forest, 1, ctx->refine_fn, NULL)); in DMSetUp_pforest()
1068 PetscCallP4est(p4est_balance, (pforest->forest, P4EST_CONNECT_FULL, NULL)); in DMSetUp_pforest()
1070 pforest->forest->user_pointer = (void *)dm; in DMSetUp_pforest()
1108 … > 1 && (pforest->partition_for_coarsening || forest->cellWeights || forest->weightCapacity != 1. … in DMSetUp_pforest()
1114 if (copyForest) PetscCallP4estReturn(forest_copy, p4est_copy, (pforest->forest, 0)); in DMSetUp_pforest()
1116 …PetscCheck(!forest->cellWeights && forest->weightCapacity == 1. && forest->weightsFactor == 1., Pe… in DMSetUp_pforest()
1117 …PetscCallP4estReturn(shipped, p4est_partition_ext, (pforest->forest, (int)pforest->partition_for_c… in DMSetUp_pforest()
1125 p4est_gloidx_t postStart = pforest->forest->global_first_quadrant[rank]; in DMSetUp_pforest()
1126 p4est_gloidx_t postEnd = pforest->forest->global_first_quadrant[rank + 1]; in DMSetUp_pforest()
1131 …PetscCall(DMPforestComputeOverlappingRanks(size, rank, pforest->forest, forest_copy, &pStart, &pEn… in DMSetUp_pforest()
1132 PetscCall(PetscMalloc1((PetscInt)pforest->forest->local_num_quadrants, &repartRoots)); in DMSetUp_pforest()
1198 … PetscCallP4estReturn(pforest->ghost, p4est_ghost_new, (pforest->forest, P4EST_CONNECT_FULL)); in DMSetUp_pforest()
1199 …PetscCallP4estReturn(pforest->lnodes, p4est_lnodes_new, (pforest->forest, pforest->ghost, -P4EST_D… in DMSetUp_pforest()
1200 … PetscCallP4est(p4est_ghost_support_lnodes, (pforest->forest, pforest->lnodes, pforest->ghost)); in DMSetUp_pforest()
1201 …for (i = 1; i < overlap; i++) PetscCallP4est(p4est_ghost_expand_by_lnodes, (pforest->forest, pfore… in DMSetUp_pforest()
1204 …cEnd = pforest->forest->local_num_quadrants + pforest->ghost->proc_o… in DMSetUp_pforest()
1311 forest->preCoarseToFine = preCoarseToFine; in DMSetUp_pforest()
1312 forest->coarseToPreFine = coarseToPreFine; in DMSetUp_pforest()
1322 DM_Forest *forest; in DMForestGetAdaptivitySuccess_pforest() local
1326 forest = (DM_Forest *)dm->data; in DMForestGetAdaptivitySuccess_pforest()
1327 pforest = (DM_Forest_pforest *)forest->data; in DMForestGetAdaptivitySuccess_pforest()
1369 DM_Forest *forest = (DM_Forest *)dm->data; in DMView_VTK_pforest() local
1370 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMView_VTK_pforest()
1389 …PetscCheck(pforest->forest, PetscObjectComm(odm), PETSC_ERR_ARG_WRONG, "DM has not been setup with… in DMView_VTK_pforest()
1403 PetscCallP4estReturn(pvtk, p4est_vtk_context_new, (pforest->forest, name)); in DMView_VTK_pforest()
2282 DM_Forest *forest; in DMPforestGetCellSFNodes() local
2286 forest = (DM_Forest *)dm->data; in DMPforestGetCellSFNodes()
2287 pforest = (DM_Forest_pforest *)forest->data; in DMPforestGetCellSFNodes()
2358 p4estC = pforestC->forest; in DMPforestGetTransferSF_Point()
2359 p4estF = pforestF->forest; in DMPforestGetTransferSF_Point()
3035 DM_Forest *forest = (DM_Forest *)dm->data; in DMPforestLabelsInitialize() local
3036 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMPforestLabelsInitialize()
3054 p4est_t *p4est = pforest->forest; in DMPforestLabelsInitialize()
3057 p4est_topidx_t llt = pforest->forest->last_local_tree; in DMPforestLabelsInitialize()
3156 p4est_tree_t *trees = (p4est_tree_t *)pforest->forest->trees->array; in DMPforestLabelsInitialize()
3699 DM_Forest *forest; in DMPforestMapCoordinates() local
3711 forest = (DM_Forest *)dm->data; in DMPforestMapCoordinates()
3712 pforest = (DM_Forest_pforest *)forest->data; in DMPforestMapCoordinates()
3720 flt = pforest->forest->first_local_tree; in DMPforestMapCoordinates()
3721 llt = pforest->forest->last_local_tree; in DMPforestMapCoordinates()
3722 trees = (p4est_tree_t *)pforest->forest->trees->array; in DMPforestMapCoordinates()
3882 …PetscCallP4est(p4est_qcoord_to_vertex, (pforest->forest->connectivity, coarsePoint, quad_coords[0]… in PforestCheckLocalizeCell()
3884 …PetscCallP4est(p4est_qcoord_to_vertex, (pforest->forest->connectivity, coarsePoint, quad_coords[0]… in PforestCheckLocalizeCell()
3927 …PetscCallP4est(p4est_qcoord_to_vertex, (pforest->forest->connectivity, coarsePoint, quad_coords[0]… in PforestLocalizeCell()
3929 …PetscCallP4est(p4est_qcoord_to_vertex, (pforest->forest->connectivity, coarsePoint, quad_coords[0]… in PforestLocalizeCell()
3939 DM_Forest *forest; in DMPforestLocalizeCoordinates() local
3972 forest = (DM_Forest *)dm->data; in DMPforestLocalizeCoordinates()
3973 pforest = (DM_Forest_pforest *)forest->data; in DMPforestLocalizeCoordinates()
3976 flt = pforest->forest->first_local_tree; in DMPforestLocalizeCoordinates()
3977 llt = pforest->forest->last_local_tree; in DMPforestLocalizeCoordinates()
3978 trees = (p4est_tree_t *)pforest->forest->trees->array; in DMPforestLocalizeCoordinates()
4093 DM_Forest *forest; in DMForestClearAdaptivityForest_pforest() local
4097 forest = (DM_Forest *)dm->data; in DMForestClearAdaptivityForest_pforest()
4098 pforest = (DM_Forest_pforest *)forest->data; in DMForestClearAdaptivityForest_pforest()
4108 DM_Forest *forest; in DMConvert_pforest_plex() local
4133 forest = (DM_Forest *)dm->data; in DMConvert_pforest_plex()
4134 pforest = (DM_Forest_pforest *)forest->data; in DMConvert_pforest_plex()
4178 …PetscCallP4est(p4est_get_plex_data_ext, (pforest->forest, &pforest->ghost, &pforest->lnodes, ctype… in DMConvert_pforest_plex()
4181 pforest->cLocalEnd = pforest->cLocalStart + (PetscInt)pforest->forest->local_num_quadrants; in DMConvert_pforest_plex()
5010 DM_Forest *forest; in DMForestCreateCellChart_pforest() local
5016 forest = (DM_Forest *)dm->data; in DMForestCreateCellChart_pforest()
5017 pforest = (DM_Forest_pforest *)forest->data; in DMForestCreateCellChart_pforest()
5021 …*cEnd = pforest->forest->local_num_quadrants + pforest->ghost->proc_offsets[pforest->forest->mpisi… in DMForestCreateCellChart_pforest()
5023 *cEnd = pforest->forest->local_num_quadrants; in DMForestCreateCellChart_pforest()
5031 DM_Forest *forest; in DMForestCreateCellSF_pforest() local
5042 forest = (DM_Forest *)dm->data; in DMForestCreateCellSF_pforest()
5043 pforest = (DM_Forest_pforest *)forest->data; in DMForestCreateCellSF_pforest()
5071 …PetscCallP4est(p4est_ghost_exchange_custom, (pforest->forest, pforest->ghost, sizeof(PetscSFNode),… in DMForestCreateCellSF_pforest()
5158 DM_Forest *forest; in DMCreate_pforest() local
5179 forest = (DM_Forest *)dm->data; in DMCreate_pforest()
5180 forest->data = pforest; in DMCreate_pforest()
5181 forest->destroy = DMForestDestroy_pforest; in DMCreate_pforest()
5182 forest->ftemplate = DMForestTemplate_pforest; in DMCreate_pforest()
5183 forest->transfervec = DMForestTransferVec_pforest; in DMCreate_pforest()
5184 forest->transfervecfrombase = DMForestTransferVecFromBase_pforest; in DMCreate_pforest()
5185 forest->createcellchart = DMForestCreateCellChart_pforest; in DMCreate_pforest()
5186 forest->createcellsf = DMForestCreateCellSF_pforest; in DMCreate_pforest()
5187 forest->clearadaptivityforest = DMForestClearAdaptivityForest_pforest; in DMCreate_pforest()
5188 forest->getadaptivitysuccess = DMForestGetAdaptivitySuccess_pforest; in DMCreate_pforest()
5190 pforest->forest = NULL; in DMCreate_pforest()