Lines Matching refs:labelNew
1786 PetscErrorCode DMLabelPermute(DMLabel label, IS permutation, DMLabel *labelNew) in DMLabelPermute() argument
1796 PetscCall(DMLabelDuplicate(label, labelNew)); in DMLabelPermute()
1797 PetscCall(DMLabelGetNumValues(*labelNew, &numValues)); in DMLabelPermute()
1801 const PetscInt size = (*labelNew)->stratumSizes[v]; in DMLabelPermute()
1805 PetscCall(ISGetIndices((*labelNew)->points[v], &points)); in DMLabelPermute()
1813 PetscCall(ISRestoreIndices((*labelNew)->points[v], &points)); in DMLabelPermute()
1815 PetscCall(ISDestroy(&(*labelNew)->points[v])); in DMLabelPermute()
1817 PetscCall(ISCreateStride(PETSC_COMM_SELF, size, pointsNew[0], 1, &((*labelNew)->points[v]))); in DMLabelPermute()
1820 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, size, pointsNew, PETSC_OWN_POINTER, &((*labelNew)->poin… in DMLabelPermute()
1822 PetscCall(PetscObjectSetName((PetscObject)((*labelNew)->points[v]), "indices")); in DMLabelPermute()
1984 PetscErrorCode DMLabelDistribute(DMLabel label, PetscSF sf, DMLabel *labelNew) in DMLabelDistribute() argument
2017 PetscCall(DMLabelCreate(PETSC_COMM_SELF, name, labelNew)); in DMLabelDistribute()
2020 if (rank == 0) (*labelNew)->defaultValue = label->defaultValue; in DMLabelDistribute()
2021 PetscCallMPI(MPI_Bcast(&(*labelNew)->defaultValue, 1, MPIU_INT, 0, comm)); in DMLabelDistribute()
2028 PetscCall(PetscHSetIGetSize(stratumHash, &(*labelNew)->numStrata)); in DMLabelDistribute()
2029 PetscCall(PetscMalloc1((*labelNew)->numStrata, &(*labelNew)->validIS)); in DMLabelDistribute()
2030 for (s = 0; s < (*labelNew)->numStrata; ++s) (*labelNew)->validIS[s] = PETSC_TRUE; in DMLabelDistribute()
2031 PetscCall(PetscMalloc1((*labelNew)->numStrata, &(*labelNew)->stratumValues)); in DMLabelDistribute()
2034 PetscCall(PetscHSetIGetElems(stratumHash, &offset, (*labelNew)->stratumValues)); in DMLabelDistribute()
2035 PetscCall(PetscSortInt((*labelNew)->numStrata, (*labelNew)->stratumValues)); in DMLabelDistribute()
2036 …for (s = 0; s < (*labelNew)->numStrata; ++s) PetscCall(PetscHMapISet((*labelNew)->hmap, (*labelNew… in DMLabelDistribute()
2038 for (s = 0; s < (*labelNew)->numStrata; ++s) { in DMLabelDistribute()
2039 if (leafStrata[p] == (*labelNew)->stratumValues[s]) { in DMLabelDistribute()
2046 PetscCall(PetscCalloc1((*labelNew)->numStrata, &(*labelNew)->stratumSizes)); in DMLabelDistribute()
2051 for (s = 0; s < dof; s++) (*labelNew)->stratumSizes[leafStrata[offset + s]]++; in DMLabelDistribute()
2053 PetscCall(PetscCalloc1((*labelNew)->numStrata, &(*labelNew)->ht)); in DMLabelDistribute()
2054 PetscCall(PetscCalloc1((*labelNew)->numStrata, &(*labelNew)->points)); in DMLabelDistribute()
2055 PetscCall(PetscCalloc1((*labelNew)->numStrata, &points)); in DMLabelDistribute()
2056 for (s = 0; s < (*labelNew)->numStrata; ++s) { in DMLabelDistribute()
2057 PetscCall(PetscHSetICreate(&(*labelNew)->ht[s])); in DMLabelDistribute()
2058 PetscCall(PetscMalloc1((*labelNew)->stratumSizes[s], &points[s])); in DMLabelDistribute()
2061 PetscCall(PetscCalloc1((*labelNew)->numStrata, &strataIdx)); in DMLabelDistribute()
2071 for (s = 0; s < (*labelNew)->numStrata; s++) { in DMLabelDistribute()
2072 …all(ISCreateGeneral(PETSC_COMM_SELF, (*labelNew)->stratumSizes[s], &points[s][0], PETSC_OWN_POINTE… in DMLabelDistribute()
2073 PetscCall(PetscObjectSetName((PetscObject)((*labelNew)->points[s]), "indices")); in DMLabelDistribute()
2102 PetscErrorCode DMLabelGather(DMLabel label, PetscSF sf, DMLabel *labelNew) in DMLabelGather() argument
2134 PetscCall(DMLabelCreate(PETSC_COMM_SELF, name, labelNew)); in DMLabelGather()
2163 for (s = 0; s < dof; s++) PetscCall(DMLabelSetValue(*labelNew, p, rootStrata[offset + s])); in DMLabelGather()