Lines Matching refs:sf
93 static PetscErrorCode PetscSFViewCustom(PetscSF sf, PetscViewer viewer) in PetscSFViewCustom() argument
103 PetscCall(PetscSFSetUp(sf)); in PetscSFViewCustom()
104 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, &iremote)); in PetscSFViewCustom()
105 PetscCall(PetscSFGetRootRanks(sf, &nranks, NULL, NULL, NULL, NULL)); in PetscSFViewCustom()
106 PetscCall(PetscSFGetGraphLayout(sf, &rootLayout, NULL, NULL, &gremote)); in PetscSFViewCustom()
107 …PetscCheck(nroots == rootLayout->n, PetscObjectComm((PetscObject)sf), PETSC_ERR_PLIB, "Assertion f… in PetscSFViewCustom()
108 PetscCall(PetscObjectPrintClassNamePrefixType((PetscObject)sf, viewer)); in PetscSFViewCustom()
110 PetscCallMPI(MPI_Comm_rank(PetscObjectComm((PetscObject)sf), &rank)); in PetscSFViewCustom()
132 PetscSF sf; in CreateReferenceSF_Regular() local
137 PetscCall(PetscSFCreate(ctx->comm, &sf)); 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()
173 PetscCall(PetscObjectSetName((PetscObject)sf, "reference_sf")); in CreateReferenceSF_Regular()
174 if (ctx->viewer) PetscCall(PetscSFViewCustom(sf, ctx->viewer)); in CreateReferenceSF_Regular()
175 *refSF = sf; in CreateReferenceSF_Regular()
191 PetscSF sf; in CreateSFs_Irregular() local
209 PetscCall(PetscSFCreate(ctx->comm, &sf)); in CreateSFs_Irregular()
210 …PetscCall(PetscSFSetGraph(sf, nroots, nLeaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINT… in CreateSFs_Irregular()
212 PetscCall(PetscObjectSetName((PetscObject)sf, name)); in CreateSFs_Irregular()
213 if (ctx->viewer) PetscCall(PetscSFViewCustom(sf, ctx->viewer)); in CreateSFs_Irregular()
214 sfs[i] = sf; in CreateSFs_Irregular()
233 PetscSF sf; in CreateSFs_Regular() local
238 PetscCall(PetscSFCreate(ctx->comm, &sf)); 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()
289 PetscCall(PetscObjectSetName((PetscObject)sf, name)); in CreateSFs_Regular()
290 if (ctx->viewer) PetscCall(PetscSFViewCustom(sf, ctx->viewer)); in CreateSFs_Regular()
291 sfs[i] = sf; in CreateSFs_Regular()
312 PetscSF sf; in main() local
327 PetscCall(PetscSFConcatenate(comm, ctx->nsfs, sfs, ctx->rootMode, leafOffsets, &sf)); in main()
328 PetscCall(PetscObjectSetName((PetscObject)sf, "result_sf")); in main()
331 PetscCall(PetscSFViewCustom(sf, ctx->viewer)); in main()
338 PetscCall(PetscSFCheckEqual_Private(sf, sfRef)); in main()
343 PetscCall(PetscSFDestroy(&sf)); in main()