Lines Matching refs:ilocal
97 const PetscInt *ilocal; in PetscSFViewCustom() local
104 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, &iremote)); in PetscSFViewCustom()
117 …d, %2" PetscInt_FMT ") = %3" PetscInt_FMT "\n", rank, (PetscMPIInt)(ilocal ? ilocal[i] : i), (Pet… in PetscSFViewCustom()
129 PetscInt *ilocal = NULL; in CreateReferenceSF_Regular() local
135 ilocal = NULL; in CreateReferenceSF_Regular()
136 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(nLeaves + 1, &ilocal)); in CreateReferenceSF_Regular()
139 if (ctx->sparseLeaves) ilocal[j + 1] = ilocal[j] + ctx->leaveStep; in CreateReferenceSF_Regular()
157 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateReferenceSF_Regular()
166 PetscCall(PetscSFSetGraphLayout(sf, map, nLeaves, ilocal, PETSC_OWN_POINTER, gremote)); in CreateReferenceSF_Regular()
194 PetscInt *ilocal = NULL; in CreateSFs_Irregular() local
198 if (ctx->sparseLeaves) PetscCall(PetscCalloc1(nLeaves + 1, &ilocal)); in CreateSFs_Irregular()
202 if (ctx->sparseLeaves) ilocal[j + 1] = ilocal[j] + ctx->leaveStep; in CreateSFs_Irregular()
207 if (ctx->sparseLeaves) lOffsets[i + 1] = lOffsets[i] + ilocal[j]; in CreateSFs_Irregular()
210 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateSFs_Irregular()
235 PetscInt *ilocal = NULL; in CreateSFs_Regular() local
240 PetscCall(PetscCalloc1(nLeaves + 1, &ilocal)); in CreateSFs_Regular()
241 for (j = 0; j < nLeaves; j++) ilocal[j + 1] = ilocal[j] + ctx->leaveStep; in CreateSFs_Regular()
242 lOffsets[i + 1] = lOffsets[i] + ilocal[nLeaves]; in CreateSFs_Regular()
257 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateSFs_Regular()
271 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateSFs_Regular()
281 PetscCall(PetscSFSetGraphLayout(sf, map, nLeaves, ilocal, PETSC_OWN_POINTER, gremote)); in CreateSFs_Regular()