Lines Matching refs:conn

171   p4est_connectivity_t *conn;  member
246 PetscCallP4est(p4est_connectivity_destroy, ((*topo)->conn)); in DMFTopologyDestroy_pforest()
267 …PetscCallP4estReturn((*topo)->conn, p4est_connectivity_new_brick, ((int)N[0], (int)N[1], (P[0] == … in DMFTopologyCreateBrick_pforest()
269 …PetscCallP4estReturn((*topo)->conn, p8est_connectivity_new_brick, ((int)N[0], (int)N[1], (int)N[2]… in DMFTopologyCreateBrick_pforest()
271 numVerts = (*topo)->conn->num_vertices; in DMFTopologyCreateBrick_pforest()
272 vertices = (*topo)->conn->vertices; in DMFTopologyCreateBrick_pforest()
279 PetscCall(PforestConnectivityEnumerateFacets((*topo)->conn, &(*topo)->tree_face_to_uniq)); in DMFTopologyCreateBrick_pforest()
329 PetscCallP4estReturn((*topo)->conn, p4est_connectivity_new_byname, (name)); 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()
352 PetscCall(PforestConnectivityEnumerateFacets((*topo)->conn, &(*topo)->tree_face_to_uniq)); in DMFTopologyCreate_pforest()
746 p4est_connectivity_t *conn = NULL; in DMSetUp_pforest() local
773 PetscCall(DMPlexCreateConnectivity_pforest(base, &conn, &tree_face_to_uniq)); in DMSetUp_pforest()
776 topo->conn = conn; in DMSetUp_pforest()
791 PetscCallP4estReturn(geom_pforest->inner, p4est_geometry_new_connectivity, (conn)); in DMSetUp_pforest()
1006 … (comm, pforest->topo->conn, 0, /* minimum number of quadrants per processor */ in DMSetUp_pforest()
1398 …st->topo->geom) PetscCallP4estReturn(geom, p4est_geometry_new_connectivity, (pforest->topo->conn)); in DMView_VTK_pforest()
1477 static PetscErrorCode PforestConnectivityEnumerateFacets(p4est_connectivity_t *conn, PetscInt **tre… in PforestConnectivityEnumerateFacets() argument
1483 numFacets = conn->num_trees * P4EST_FACES; in PforestConnectivityEnumerateFacets()
1486 for (g = 0, count = 0, t = 0; t < conn->num_trees; t++) { in PforestConnectivityEnumerateFacets()
1492 ng = conn->tree_to_tree[g] * P4EST_FACES + (conn->tree_to_face[g] % P4EST_FACES); in PforestConnectivityEnumerateFacets()
1514 p4est_connectivity_t *conn; in DMPlexCreateConnectivity_pforest() local
1587 …PetscCallP4estReturn(conn, p8est_connectivity_new, (numVerts, numTrees, numEdges, numEtt, numCorns… in DMPlexCreateConnectivity_pforest()
1589 PetscCallP4estReturn(conn, p4est_connectivity_new, (numVerts, numTrees, numCorns, numCtt)); in DMPlexCreateConnectivity_pforest()
1642 conn->tree_to_tree[P4EST_FACES * (p - cStart) + PetscFaceToP4estFace[i]] = p - cStart; in DMPlexCreateConnectivity_pforest()
1643conn->tree_to_face[P4EST_FACES * (p - cStart) + PetscFaceToP4estFace[i]] = (int8_t)PetscFaceToP4es… in DMPlexCreateConnectivity_pforest()
1647conn->tree_to_tree[P4EST_FACES * (p - cStart) + PetscFaceToP4estFace[i]] = supp[1 - s] - cStart; in DMPlexCreateConnectivity_pforest()
1680conn->tree_to_face[P4EST_FACES * (p - cStart) + myFace[s]] = (int8_t)(myFace[1 - s] + p4estOrient … in DMPlexCreateConnectivity_pforest()
1687 conn->ett_offset[0] = 0; in DMPlexCreateConnectivity_pforest()
1692 conn->ett_offset[e - eStart] = (p4est_topidx_t)off; in DMPlexCreateConnectivity_pforest()
1715 conn->edge_to_tree[off] = (p4est_locidx_t)(p - cStart); in DMPlexCreateConnectivity_pforest()
1718conn->edge_to_edge[off++] = (int8_t)(p4estEdge + P8EST_EDGES * to… in DMPlexCreateConnectivity_pforest()
1719 conn->tree_to_edge[P8EST_EDGES * (p - cStart) + p4estEdge] = e - eStart; in DMPlexCreateConnectivity_pforest()
1731 conn->ctt_offset[0] = 0; in DMPlexCreateConnectivity_pforest()
1736 conn->ctt_offset[v - vStart] = (p4est_topidx_t)off; in DMPlexCreateConnectivity_pforest()
1750conn->corner_to_tree[off] = (p4est_locidx_t)(p - cStart); in DMPlexCreateConnectivity_pforest()
1751 conn->corner_to_corner[off++] = (int8_t)p4estVert; in DMPlexCreateConnectivity_pforest()
1752 conn->tree_to_corner[P4EST_CHILDREN * (p - cStart) + p4estVert] = v - vStart; in DMPlexCreateConnectivity_pforest()
1780 conn->tree_to_vertex[P4EST_CHILDREN * (c - cStart) + v] = P4EST_CHILDREN * (c - cStart) + v; in DMPlexCreateConnectivity_pforest()
1782 … for (i = 0; i < 3; i++) conn->vertices[3 * (P4EST_CHILDREN * (c - cStart) + p4estVert) + i] = 0.; in DMPlexCreateConnectivity_pforest()
1783 …for (i = 0; i < lim; i++) conn->vertices[3 * (P4EST_CHILDREN * (c - cStart) + p4estVert) + i] = Pe… in DMPlexCreateConnectivity_pforest()
1790 …PetscCheck(p4est_connectivity_is_valid(conn), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Plex to p4est conv… in DMPlexCreateConnectivity_pforest()
1793 *connOut = conn; in DMPlexCreateConnectivity_pforest()
3044 p4est_topidx_t num_trees = pforest->topo->conn->num_trees; in DMPforestLabelsInitialize()
3053 p4est_connectivity_t *conn = pforest->topo->conn; in DMPforestLabelsInitialize() local
3083 nt = conn->tree_to_tree[t * P4EST_FACES + f]; in DMPforestLabelsInitialize()
3084 nf = (PetscInt)conn->tree_to_face[t * P4EST_FACES + f]; in DMPforestLabelsInitialize()
3328 PetscInt e = pforest->topo->conn->tree_to_edge[P8EST_EDGES * t + l]; in DMPforestLabelsInitialize()
3438 e = pforest->topo->conn->tree_to_edge[P8EST_EDGES * t + e]; in DMPforestLabelsInitialize()
3450 PetscInt v = pforest->topo->conn->tree_to_corner[P4EST_CHILDREN * t + l]; in DMPforestLabelsInitialize()
3590 …tscInt cell, p4est_quadrant_t *q, p4est_topidx_t t, p4est_connectivity_t *conn, PetscScalar *coord… in DMPforestMapCoordinates_Cell() argument
3630 …for (k = 0; k < 3; k++) treeCoords[j][k] = conn->vertices[3 * conn->tree_to_vertex[P4EST_CHILDREN … in DMPforestMapCoordinates_Cell()
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 …DMPforestMapCoordinates_Cell(plex, geom, count + cLocalEnd, quad, t, pforest->topo->conn, coords)); in DMPforestMapCoordinates()