Lines Matching refs:elem
780 long c, block, numEntityBlocks, numTotalElements, elem, numElements; in GmshReadElements_v40() local
812 for (elem = 0; elem < numElements; ++elem, ++c) { in GmshReadElements_v40()
814 const int *id = ibuf + elem * (1 + numNodes), *nodes = id + 1; in GmshReadElements_v40()
1026 …4], numEntityBlocks, numElements, numBlockElements, numVerts, numNodes, numTags, block, elem, c, p; in GmshReadElements_v41() local
1052 for (elem = 0; elem < numBlockElements; ++elem, ++c) { in GmshReadElements_v41()
1054 const PetscInt *id = ibuf + elem * (1 + numNodes), *nodes = id + 1; in GmshReadElements_v41()
1320 GmshElement *elem = mesh->numElems ? mesh->elements : NULL; in GmshReadElements() local
1321 mesh->dim = elem ? GmshCellMap[elem->cellType].dim : 0; in GmshReadElements()
1322 mesh->order = elem ? GmshCellMap[elem->cellType].order : 0; in GmshReadElements()
1334 GmshElement *elem = mesh->elements + e; in GmshReadElements() local
1335 if (elem->dim == dim && dim > 0) mesh->numCells++; in GmshReadElements()
1336 for (v = 0; v < elem->numVerts; v++) PetscCall(PetscBTSet(vtx, elem->nodes[v])); in GmshReadElements()
1757 GmshElement *elem = mesh->elements + cell; in DMPlexCreateGmsh() local
1758 DMPolytopeType ctype = DMPolytopeTypeFromGmsh(elem->cellType); in DMPlexCreateGmsh()
1760 PetscCall(DMPlexSetConeSize(*dm, cell, elem->numVerts)); in DMPlexCreateGmsh()
1768 GmshElement *elem = mesh->elements + cell; in DMPlexCreateGmsh() local
1769 for (v = 0; v < elem->numVerts; ++v) { in DMPlexCreateGmsh()
1770 const PetscInt nn = elem->nodes[v]; in DMPlexCreateGmsh()
1795 GmshElement *elem = mesh->elements + e; in DMPlexCreateGmsh() local
1798 if (elem->dim == dim && dim > 0) { in DMPlexCreateGmsh()
1799 if (elem->numTags > 0) { in DMPlexCreateGmsh()
1800 PetscInt Nt = elem->numTags, t, r; in DMPlexCreateGmsh()
1803 const PetscInt tag = elem->tags[t]; in DMPlexCreateGmsh()
1817 if (elem->numTags && interpolate && elem->dim == dim - 1) { in DMPlexCreateGmsh()
1820 PetscInt Nt = elem->numTags, pdepth; in DMPlexCreateGmsh()
1823 for (v = 0; v < elem->numVerts; ++v) { in DMPlexCreateGmsh()
1824 const PetscInt nn = elem->nodes[v]; in DMPlexCreateGmsh()
1828 PetscCall(DMPlexGetFullJoin(*dm, elem->numVerts, cone, &joinSize, &join)); in DMPlexCreateGmsh()
1829 …termine Plex facet for Gmsh element %" PetscInt_FMT " (Plex cell %" PetscInt_FMT ")", elem->id, e); in DMPlexCreateGmsh()
1831 …" PetscInt_FMT " had depth %" PetscInt_FMT " != %" PetscInt_FMT, join[0], elem->id, pdepth, dim - … in DMPlexCreateGmsh()
1833 const PetscInt tag = elem->tags[t]; in DMPlexCreateGmsh()
1842 PetscCall(DMPlexRestoreJoin(*dm, elem->numVerts, cone, &joinSize, &join)); in DMPlexCreateGmsh()
1846 if (elem->numTags && interpolate && dim > 2 && elem->dim == 1) { in DMPlexCreateGmsh()
1849 PetscInt Nt = elem->numTags, t, r; in DMPlexCreateGmsh()
1852 for (v = 0; v < elem->numVerts; ++v) { in DMPlexCreateGmsh()
1853 const PetscInt nn = elem->nodes[v]; in DMPlexCreateGmsh()
1857 PetscCall(DMPlexGetJoin(*dm, elem->numVerts, cone, &joinSize, &join)); in DMPlexCreateGmsh()
1858 …etermine Plex edge for Gmsh element %" PetscInt_FMT " (Plex cell %" PetscInt_FMT ")", elem->id, e); in DMPlexCreateGmsh()
1860 const PetscInt tag = elem->tags[t]; in DMPlexCreateGmsh()
1869 PetscCall(DMPlexRestoreJoin(*dm, elem->numVerts, cone, &joinSize, &join)); in DMPlexCreateGmsh()
1873 if (elem->numTags && elem->dim == 0 && (markverticesstrict || markvertices)) { in DMPlexCreateGmsh()
1874 const PetscInt nn = elem->nodes[0]; in DMPlexCreateGmsh()
1876 PetscInt Nt = elem->numTags; in DMPlexCreateGmsh()
1879 const PetscInt tag = elem->tags[t]; in DMPlexCreateGmsh()
2004 GmshElement *elem = mesh->elements + cell; in DMPlexCreateGmsh() local
2005 const int *lexorder = GmshCellMap[elem->cellType].lexorder(); in DMPlexCreateGmsh()
2007 for (n = 0; n < elem->numNodes; ++n) { in DMPlexCreateGmsh()
2009 const PetscInt node = elem->nodes[lexorder[n + s]]; in DMPlexCreateGmsh()
2029 for (n = 0; n < elem->numNodes + s; ++n) { in DMPlexCreateGmsh()
2032 for (int bn = 0; bn < elem->numNodes + s; ++bn) { in DMPlexCreateGmsh()
2035 const PetscInt bnode = elem->nodes[lexorder[bn]]; in DMPlexCreateGmsh()
2113 GmshElement *elem = mesh->elements + c - cStart; in DMPlexCreateGmsh() local
2118 for (PetscInt v = 0; v < elem->numVerts; ++v) cone[v] = elem->nodes[v]; in DMPlexCreateGmsh()
2124 …elem->numVerts, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Number of vertices %" PetscInt_FMT " in cl… in DMPlexCreateGmsh()