Lines Matching refs:sf
18 static PetscErrorCode PetscSFViewCustomLocals_Private(PetscSF sf, const PetscInt locals[], PetscVie… in PetscSFViewCustomLocals_Private() argument
25 PetscCallMPI(MPI_Comm_rank(PetscObjectComm((PetscObject)sf), &rank)); in PetscSFViewCustomLocals_Private()
26 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, NULL, &iremote)); in PetscSFViewCustomLocals_Private()
27 PetscCall(PetscSFGetRootRanks(sf, &nranks, NULL, NULL, NULL, NULL)); in PetscSFViewCustomLocals_Private()
43 PetscSF sf, vsf; in main() local
146 PetscCall(PetscSFCreate(PETSC_COMM_WORLD, &sf)); in main()
147 PetscCall(PetscSFSetFromOptions(sf)); in main()
148 …PetscCall(PetscSFSetGraph(sf, nrootsalloc, nleaves, mine, PETSC_OWN_POINTER, remote, PETSC_OWN_POI… in main()
149 PetscCall(PetscSFSetUp(sf)); in main()
152 PetscCall(PetscSFCreateStridedSF(sf, bs, PETSC_DECIDE, PETSC_DECIDE, &vsf)); in main()
154 PetscSF t = sf; in main()
156 sf = vsf; in main()
168 PetscCall(PetscSFView(sf, PETSC_VIEWER_STDOUT_WORLD)); in main()
183 PetscCall(PetscSFRegisterPersistent(sf, MPIU_INT, rootdata, leafdata)); in main()
185 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, rootdata, leafdata, MPI_REPLACE)); in main()
186 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, rootdata, leafdata, MPI_REPLACE)); in main()
188 PetscCall(PetscSFDeregisterPersistent(sf, MPIU_INT, rootdata, leafdata)); in main()
207 PetscCall(PetscSFBcastBegin(sf, MPI_CHAR, rootdata, leafdata, MPI_REPLACE)); in main()
208 PetscCall(PetscSFBcastEnd(sf, MPI_CHAR, rootdata, leafdata, MPI_REPLACE)); in main()
248 PetscCall(PetscSFBcastBegin(sf, MPIU_INT, rootdata, leafdata, mop)); in main()
249 PetscCall(PetscSFBcastEnd(sf, MPIU_INT, rootdata, leafdata, mop)); in main()
270 PetscCall(PetscSFReduceBegin(sf, MPIU_INT, leafdata, rootdata, mop)); in main()
271 PetscCall(PetscSFReduceEnd(sf, MPIU_INT, leafdata, rootdata, mop)); in main()
305 PetscCall(PetscSFReduceBegin(sf, MPI_SIGNED_CHAR, leafdata, rootdata, mop)); in main()
306 PetscCall(PetscSFReduceEnd(sf, MPI_SIGNED_CHAR, leafdata, rootdata, mop)); in main()
359 PetscCall(PetscSFReduceBegin(sf, MPI_UNSIGNED_CHAR, leafdata, rootdata, mop)); in main()
360 PetscCall(PetscSFReduceEnd(sf, MPI_UNSIGNED_CHAR, leafdata, rootdata, mop)); in main()
389 PetscCall(PetscSFComputeDegreeBegin(sf, °ree)); in main()
390 PetscCall(PetscSFComputeDegreeEnd(sf, °ree)); in main()
403 PetscCall(PetscSFFetchAndOpBegin(sf, MPIU_INT, rootdata, leafdata, leafupdate, mop)); in main()
404 PetscCall(PetscSFFetchAndOpEnd(sf, MPIU_INT, rootdata, leafdata, leafupdate, mop)); in main()
415 PetscCall(PetscSFComputeDegreeBegin(sf, °ree)); in main()
416 PetscCall(PetscSFComputeDegreeEnd(sf, °ree)); in main()
421 PetscCall(PetscSFGatherBegin(sf, MPIU_INT, outdata, indata)); in main()
422 PetscCall(PetscSFGatherEnd(sf, MPIU_INT, outdata, indata)); in main()
431 PetscCall(PetscSFComputeDegreeBegin(sf, °ree)); in main()
432 PetscCall(PetscSFComputeDegreeEnd(sf, °ree)); in main()
442 PetscCall(PetscSFScatterBegin(sf, MPIU_INT, indata, outdata)); in main()
443 PetscCall(PetscSFScatterEnd(sf, MPIU_INT, indata, outdata)); in main()
456 PetscCall(PetscSFCreateEmbeddedRootSF(sf, nroots, selected, &esf)); in main()
471 PetscCall(PetscSFGetMultiSF(sf, &msf)); in main()
478 PetscCall(PetscSFComputeDegreeBegin(sf, °ree)); in main()
479 PetscCall(PetscSFComputeDegreeEnd(sf, °ree)); in main()
480 PetscCall(PetscSFComputeMultiRootOriginalNumbering(sf, degree, &inedges, &mRootsOrigNumbering)); in main()
491 PetscCall(PetscSFDestroy(&sf)); in main()