Lines Matching refs:childIDs
211 …teReferenceTree_SetTree(DM dm, PetscSection parentSection, PetscInt parents[], PetscInt childIDs[]) in DMPlexCreateReferenceTree_SetTree() argument
214 PetscCall(DMPlexSetTree_Internal(dm, parentSection, parents, childIDs, PETSC_TRUE, PETSC_FALSE)); in DMPlexCreateReferenceTree_SetTree()
221 PetscInt dim, p, pStart, pEnd, pRefStart, pRefEnd, d, offset, parentSize, *parents, *childIDs; in DMPlexCreateReferenceTree_Union() local
395 PetscCall(PetscMalloc2(parentSize, &parents, parentSize, &childIDs)); in DMPlexCreateReferenceTree_Union()
407 childIDs[pOff] = uOff; in DMPlexCreateReferenceTree_Union()
410 PetscCall(DMPlexCreateReferenceTree_SetTree(*ref, parentSection, parents, childIDs)); in DMPlexCreateReferenceTree_Union()
412 PetscCall(PetscFree2(parents, childIDs)); in DMPlexCreateReferenceTree_Union()
895 …nternal(DM dm, PetscSection parentSection, PetscInt *parents, PetscInt *childIDs, PetscBool comput… in DMPlexSetTree_Internal() argument
913 if (childIDs != mesh->childIDs) { in DMPlexSetTree_Internal()
914 PetscCall(PetscFree(mesh->childIDs)); in DMPlexSetTree_Internal()
915 PetscCall(PetscMalloc1(size, &mesh->childIDs)); in DMPlexSetTree_Internal()
916 PetscCall(PetscArraycpy(mesh->childIDs, childIDs, size)); in DMPlexSetTree_Internal()
928 PetscCall(DMLabelGetValue(canonLabel, mesh->childIDs[i], &canon)); in DMPlexSetTree_Internal()
929 if (canon >= 0) mesh->childIDs[i] = canon; in DMPlexSetTree_Internal()
995 …ErrorCode DMPlexSetTree(DM dm, PetscSection parentSection, PetscInt parents[], PetscInt childIDs[]) in DMPlexSetTree() argument
998 PetscCall(DMPlexSetTree_Internal(dm, parentSection, parents, childIDs, PETSC_FALSE, PETSC_TRUE)); in DMPlexSetTree()
1022 …Tree(DM dm, PetscSection *parentSection, PetscInt *parents[], PetscInt *childIDs[], PetscSection *… in DMPlexGetTree() argument
1030 if (childIDs) *childIDs = mesh->childIDs; in DMPlexGetTree()
1069 if (childID) *childID = mesh->childIDs[off]; in DMPlexGetTreeParent()
1770 PetscInt numPointsWithParents, *parents, *childIDs, *perm, *iperm, *preOrient, pOffset; in DMPlexTreeRefineCell() local
1899 PetscCall(PetscMalloc2(numPointsWithParents, &parents, numPointsWithParents, &childIDs)); in DMPlexTreeRefineCell()
1952 childIDs[pOffset] = k; in DMPlexTreeRefineCell()
2024 PetscCall(DMPlexSetTree(*ncdm, parentSection, parents, childIDs)); in DMPlexTreeRefineCell()
2032 PetscCall(PetscFree2(parents, childIDs)); in DMPlexTreeRefineCell()