Lines Matching refs:geom

172   p4est_geometry_t     *geom;  member
206 static void GeometryMapping_pforest(p4est_geometry_t *geom, p4est_topidx_t which_tree, const double… in GeometryMapping_pforest() argument
208 DM_Forest_geometry_pforest *geom_pforest = (DM_Forest_geometry_pforest *)geom->user; in GeometryMapping_pforest()
224 static void GeometryDestroy_pforest(p4est_geometry_t *geom) in GeometryDestroy_pforest() argument
226 DM_Forest_geometry_pforest *geom_pforest = (DM_Forest_geometry_pforest *)geom->user; in GeometryDestroy_pforest()
230 ierr = PetscFree(geom->user); in GeometryDestroy_pforest()
232 ierr = PetscFree(geom); in GeometryDestroy_pforest()
245 if ((*topo)->geom) PetscCallP4est(p4est_geometry_destroy, ((*topo)->geom)); in DMFTopologyDestroy_pforest()
278 (*topo)->geom = NULL; in DMFTopologyCreateBrick_pforest()
330 (*topo)->geom = NULL; in DMFTopologyCreate_pforest()
340 PetscCallP4estReturn((*topo)->geom, p8est_geometry_new_shell, ((*topo)->conn, R2, R1)); in DMFTopologyCreate_pforest()
349 PetscCallP4estReturn((*topo)->geom, p8est_geometry_new_sphere, ((*topo)->conn, R2, R1, R0)); in DMFTopologyCreate_pforest()
777 topo->geom = NULL; in DMSetUp_pforest()
785 p4est_geometry_t *geom; in DMSetUp_pforest() local
792 PetscCall(PetscNew(&geom)); in DMSetUp_pforest()
793 geom->name = topoName; in DMSetUp_pforest()
794 geom->user = geom_pforest; in DMSetUp_pforest()
795 geom->X = GeometryMapping_pforest; in DMSetUp_pforest()
796 geom->destroy = GeometryDestroy_pforest; in DMSetUp_pforest()
797 topo->geom = geom; in DMSetUp_pforest()
1378 p4est_geometry_t *geom; in DMView_VTK_pforest() local
1384 geom = pforest->topo->geom; in DMView_VTK_pforest()
1398 …if (!pforest->topo->geom) PetscCallP4estReturn(geom, p4est_geometry_new_connectivity, (pforest->to… in DMView_VTK_pforest()
1404 PetscCallP4est(p4est_vtk_context_set_geom, (pvtk, geom)); in DMView_VTK_pforest()
1420 if (!pforest->topo->geom) PetscCallP4est(p4est_geometry_destroy, (geom)); in DMView_VTK_pforest()
3590 static PetscErrorCode DMPforestMapCoordinates_Cell(DM plex, p4est_geometry_t *geom, PetscInt cell, … in DMPforestMapCoordinates_Cell() argument
3687 PetscCheck(geom, PETSC_COMM_SELF, PETSC_ERR_SUP, "Not coded"); in DMPforestMapCoordinates_Cell()
3688 (geom->X)(geom, t, coordP4est, coordP4estMapped); in DMPforestMapCoordinates_Cell()
3701 p4est_geometry_t *geom; in DMPforestMapCoordinates() local
3713 geom = pforest->topo->geom; in DMPforestMapCoordinates()
3715 if (!geom && !map) PetscFunctionReturn(PETSC_SUCCESS); in DMPforestMapCoordinates()
3800 … PetscCall(DMPforestMapCoordinates_Cell(plex, geom, count, quad, t, pforest->topo->conn, coords)); in DMPforestMapCoordinates()
3812 …PetscCall(DMPforestMapCoordinates_Cell(plex, geom, count, &quads[i], t, pforest->topo->conn, coord… in DMPforestMapCoordinates()
3824 …PetscCall(DMPforestMapCoordinates_Cell(plex, geom, count + cLocalEnd, quad, t, pforest->topo->conn… in DMPforestMapCoordinates()