Lines Matching refs:nroots

1910   PetscInt     s, l, nroots, nleaves, offset, size;  in DMLabelDistribute_Internal()  local
1920 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, NULL, NULL)); in DMLabelDistribute_Internal()
1922 PetscCall(PetscSectionSetChart(rootSection, 0, nroots)); in DMLabelDistribute_Internal()
1936 PetscCall(PetscCalloc1(nroots, &rootIdx)); in DMLabelDistribute_Internal()
2108 PetscInt p, s, d, nroots, nleaves, nmultiroots, idx, dof, offset; in DMLabelGather() local
2139 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, NULL)); in DMLabelGather()
2140 PetscCall(PetscMalloc1(nroots, &leafPoints)); in DMLabelGather()
2141 for (p = 0; p < nroots; ++p) leafPoints[p].rank = leafPoints[p].index = -1; in DMLabelGather()
2150 for (p = 0, nmultiroots = 0; p < nroots; ++p) nmultiroots += rootDegree[p]; in DMLabelGather()
2155 …PetscCall(PetscSFSetGraph(sfLabel, nroots, nmultiroots, NULL, PETSC_OWN_POINTER, rootPoints, PETSC… in DMLabelGather()
2159 for (p = 0, idx = 0; p < nroots; p++) { in DMLabelGather()
2595 PetscInt pStart, pEnd, p, dof, cdof, off, globalOff = 0, nroots; in PetscSectionCreateGlobalSectionLabel() local
2604 PetscCall(PetscSFGetGraph(sf, &nroots, NULL, NULL, NULL)); in PetscSectionCreateGlobalSectionLabel()
2605 if (nroots >= 0) { in PetscSectionCreateGlobalSectionLabel()
2606 …scCheck(nroots >= pEnd - pStart, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "PetscSF nroots %" PetscInt_F… in PetscSectionCreateGlobalSectionLabel()
2607 PetscCall(PetscCalloc1(nroots, &neg)); in PetscSectionCreateGlobalSectionLabel()
2608 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionLabel()
2609 PetscCall(PetscCalloc1(nroots, &tmpOff)); in PetscSectionCreateGlobalSectionLabel()
2627 if (nroots >= 0) { in PetscSectionCreateGlobalSectionLabel()
2630 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionLabel()
2649 if (nroots >= 0) { in PetscSectionCreateGlobalSectionLabel()
2652 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionLabel()
2658 if (nroots >= 0 && nroots > pEnd - pStart) PetscCall(PetscFree(tmpOff)); in PetscSectionCreateGlobalSectionLabel()