Home
last modified time | relevance | path

Searched refs:anchors (Results 1 – 5 of 5) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex3.c400 PetscInt *anchors; in SetupSection() local
428 PetscCall(PetscMalloc1(numConst, &anchors)); in SetupSection()
432 anchors[offset++] = v - edgesx; in SetupSection()
436 anchors[offset++] = f - edgesx * edgesy; in SetupSection()
439 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, numConst, anchors, PETSC_OWN_POINTER, &aIS)); in SetupSection()
460 const PetscInt *anchors; in SetupSection() local
467 PetscCall(ISGetIndices(aIS, &anchors)); in SetupSection()
480 a = anchors[cOff]; in SetupSection()
499 PetscCall(ISRestoreIndices(aIS, &anchors)); in SetupSection()
/petsc/src/dm/impls/plex/
H A Dplextree.c654 PetscInt p, pStart, pEnd, *anchors, size; in DMPlexCreateAnchors_Tree() local
709 PetscCall(PetscMalloc1(size, &anchors)); in DMPlexCreateAnchors_Tree()
730 for (j = 0; j < closureSize; j++) anchors[aOff + j] = closure[2 * j]; in DMPlexCreateAnchors_Tree()
734 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, size, anchors, PETSC_OWN_POINTER, &aIS)); in DMPlexCreateAnchors_Tree()
1145 const PetscInt *anchors; in DMPlexComputeAnchorMatrix_Tree_Direct() local
1156 PetscCall(ISGetIndices(aIS, &anchors)); in DMPlexComputeAnchorMatrix_Tree_Direct()
1320 PetscInt a = anchors[aOff + k]; in DMPlexComputeAnchorMatrix_Tree_Direct()
1383 PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexComputeAnchorMatrix_Tree_Direct()
1550 const PetscInt *anchors; in DMPlexComputeAnchorMatrix_Tree_FromReference() local
1564 PetscCall(ISGetIndices(anIS, &anchors)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
[all …]
H A Dplexpreallocate.c22 const PetscInt *anchors; in DMPlexComputeAnchorAdjacencies() local
31 PetscCall(ISGetIndices(aIS, &anchors)); in DMPlexComputeAnchorAdjacencies()
34 PetscInt a = anchors[p]; in DMPlexComputeAnchorAdjacencies()
52 a = anchors[off + q]; in DMPlexComputeAnchorAdjacencies()
57 PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexComputeAnchorAdjacencies()
H A Dplexdistribute.c231 const PetscInt *anchors; in DMPlexGetAdjacency_Internal() local
239 PetscCall(ISGetIndices(aIS, &anchors)); in DMPlexGetAdjacency_Internal()
277 for (q = 0; q < numAdj || ((void)(orig[numAdj++] = anchors[aOff + s]), 0); ++q) { in DMPlexGetAdjacency_Internal()
278 if (anchors[aOff + s] == orig[q]) break; in DMPlexGetAdjacency_Internal()
287 PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexGetAdjacency_Internal()
H A Dplex.c7846 const PetscInt *anchors; in DMPlexAnchorsGetSubMatModification() local
7867 PetscCall(ISGetIndices(aIS, &anchors)); in DMPlexAnchorsGetSubMatModification()
7894 PetscInt a = anchors[bOff + q]; in DMPlexAnchorsGetSubMatModification()
7928 if (aSec) PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexAnchorsGetSubMatModification()
7942 if (aSec) PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexAnchorsGetSubMatModification()
7967 PetscInt a = anchors[bOff + q], aDof = 0; in DMPlexAnchorsGetSubMatModification()
8022 PetscInt a = anchors[bOff + q], aDof = 0; in DMPlexAnchorsGetSubMatModification()
8056 PetscCall(ISRestoreIndices(aIS, &anchors)); in DMPlexAnchorsGetSubMatModification()
10644 const PetscInt *anchors; in DMPlexSetAnchors() local
10648 PetscCall(ISGetIndices(anchorIS, &anchors)); in DMPlexSetAnchors()
[all …]