Lines Matching refs:adj
23 PetscInt p, q, a, aSize, *offsets, aStart, aEnd, *inverse, iSize, *adj, adjSize; in DMPlexComputeAnchorAdjacencies() local
106 PetscCall(PetscMalloc1(adjSize, &adj)); in DMPlexComputeAnchorAdjacencies()
133 …for (nd = 0; nd < qAdjDof - qAdjCDof; ++nd) adj[aOff++] = (qAdjOff < 0 ? -(qAdjOff + 1) : qAdjOff)… in DMPlexComputeAnchorAdjacencies()
136 PetscCall(PetscSortRemoveDupsInt(&aDof, PetscSafePointerPlusOffset(adj, aOffOrig))); in DMPlexComputeAnchorAdjacencies()
139 *anchorAdj = adj; in DMPlexComputeAnchorAdjacencies()
250 …PetscInt *tmpAdj = NULL, *adj, *rootAdj, *anchorAdj = NULL, *cols, *remoteOffsets, *myRan… in DMPlexCreateAdjacencySection_Static() local
431 PetscCall(PetscCalloc1(adjSize, &adj)); in DMPlexCreateAdjacencySection_Static()
455 adj[aoff + i] = (ngoff < 0 ? -(ngoff + 1) : ngoff) + nd; in DMPlexCreateAdjacencySection_Static()
460 adj[aoff + i] = anchorAdj[anOff + q]; in DMPlexCreateAdjacencySection_Static()
468 PetscCall(PetscSectionArrayView(leafSectionAdj, adj, PETSC_INT, NULL)); in DMPlexCreateAdjacencySection_Static()
482 PetscCall(PetscSFGatherBegin(sfAdj, MPIU_INT, adj, remoteadj)); in DMPlexCreateAdjacencySection_Static()
483 PetscCall(PetscSFGatherEnd(sfAdj, MPIU_INT, adj, remoteadj)); in DMPlexCreateAdjacencySection_Static()
493 PetscCall(PetscFree(adj)); in DMPlexCreateAdjacencySection_Static()