| /petsc/src/vec/is/sf/tests/ |
| H A D | ex19.c | 36 static PetscErrorCode PetscSFCheckEqual_Private(PetscSF sf0, PetscSF sf1) in PetscSFCheckEqual_Private() argument 66 PetscCall(VecScatterBegin(sf1, vecRoot1, vecLeave1, ADD_VALUES, SCATTER_FORWARD)); in PetscSFCheckEqual_Private() 67 PetscCall(VecScatterEnd(sf1, vecRoot1, vecLeave1, ADD_VALUES, SCATTER_FORWARD)); in PetscSFCheckEqual_Private() 73 PetscCall(VecScatterBegin(sf1, vecLeave1, vecRoot1, ADD_VALUES, SCATTER_REVERSE)); in PetscSFCheckEqual_Private() 74 PetscCall(VecScatterEnd(sf1, vecLeave1, vecRoot1, ADD_VALUES, SCATTER_REVERSE)); in PetscSFCheckEqual_Private() 125 PetscErrorCode CreateSF1(AppCtx *ctx, PetscSF *sf1) in CreateSF1() argument 155 *sf1 = sf; in CreateSF1() 162 PetscSF sf0, sf1; in main() local 171 PetscCall(CreateSF1(&ctx, &sf1)); in main() 173 PetscCall(PetscSFViewFromOptions(sf1, NULL, "-sf1_view")); in main() [all …]
|
| H A D | ex18.c | 44 static PetscErrorCode PetscSFCheckEqual_Private(PetscSF sf0, PetscSF sf1) in PetscSFCheckEqual_Private() argument 74 PetscCall(VecScatterBegin(sf1, vecRoot1, vecLeave1, ADD_VALUES, SCATTER_FORWARD)); in PetscSFCheckEqual_Private() 75 PetscCall(VecScatterEnd(sf1, vecRoot1, vecLeave1, ADD_VALUES, SCATTER_FORWARD)); in PetscSFCheckEqual_Private() 81 PetscCall(VecScatterBegin(sf1, vecLeave1, vecRoot1, ADD_VALUES, SCATTER_REVERSE)); in PetscSFCheckEqual_Private() 82 PetscCall(VecScatterEnd(sf1, vecLeave1, vecRoot1, ADD_VALUES, SCATTER_REVERSE)); in PetscSFCheckEqual_Private()
|
| /petsc/src/vec/is/is/tests/output/ |
| H A D | ex9_1_nsize-1.out | 7 PetscSF Object: sf1 1 MPI process
|
| H A D | ex9_1_nsize-2.out | 10 PetscSF Object: sf1 2 MPI processes
|
| H A D | ex9_1_nsize-3.out | 13 PetscSF Object: sf1 3 MPI processes
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 732 PetscSF sf1; in PetscSFCreateByMatchingIndices() local 771 PetscCall(PetscSFCreate(comm, &sf1)); in PetscSFCreateByMatchingIndices() 772 PetscCall(PetscSFSetFromOptions(sf1)); in PetscSFCreateByMatchingIndices() 773 …PetscCall(PetscSFSetGraphLayout(sf1, layout, numRootIndices, NULL, PETSC_OWN_POINTER, rootIndices)… in PetscSFCreateByMatchingIndices() 783 PetscCall(PetscSFReduceBegin(sf1, MPIU_SF_NODE, owners, buffer, MPI_MAXLOC)); in PetscSFCreateByMatchingIndices() 784 PetscCall(PetscSFReduceEnd(sf1, MPIU_SF_NODE, owners, buffer, MPI_MAXLOC)); in PetscSFCreateByMatchingIndices() 788 …PetscCall(PetscSFSetGraphLayout(sf1, layout, numLeafIndices, NULL, PETSC_OWN_POINTER, leafIndices)… in PetscSFCreateByMatchingIndices() 791 PetscCall(PetscSFBcastBegin(sf1, MPIU_SF_NODE, buffer, owners, MPI_REPLACE)); in PetscSFCreateByMatchingIndices() 792 PetscCall(PetscSFBcastEnd(sf1, MPIU_SF_NODE, buffer, owners, MPI_REPLACE)); in PetscSFCreateByMatchingIndices() 796 *sfA = sf1; in PetscSFCreateByMatchingIndices() [all …]
|
| /petsc/src/vec/vec/impls/mpi/ |
| H A D | pdvec.c | 1006 PetscSF sf1; in VecSetPreallocationCOO_MPI() local 1012 PetscCall(PetscSFCreate(comm, &sf1)); in VecSetPreallocationCOO_MPI() 1021 …PetscCall(PetscSFSetGraph(sf1, nroots, nleaves, NULL, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINTE… in VecSetPreallocationCOO_MPI() 1022 …PetscCall(PetscSFFetchAndOpWithMemTypeBegin(sf1, MPIU_INT, PETSC_MEMTYPE_HOST, &nroots2 /*rootdata… in VecSetPreallocationCOO_MPI() 1023 …PetscCall(PetscSFFetchAndOpEnd(sf1, MPIU_INT, &nroots2, nentries, offsets, MPI_SUM)); /* Would nro… in VecSetPreallocationCOO_MPI() 1024 PetscCall(PetscSFDestroy(&sf1)); in VecSetPreallocationCOO_MPI()
|
| /petsc/src/dm/impls/plex/cgns/ |
| H A D | plexcgns2.c | 1030 PetscSF sf1; in PetscSFFindMatchingIndices() local 1072 PetscCall(PetscSFCreate(comm, &sf1)); in PetscSFFindMatchingIndices() 1073 PetscCall(PetscSFSetFromOptions(sf1)); in PetscSFFindMatchingIndices() 1074 …PetscCall(PetscSFSetGraphLayout(sf1, layout, numRootIndices, NULL, PETSC_OWN_POINTER, rootIndices)… in PetscSFFindMatchingIndices() 1076 PetscCall(PetscSFComputeDegreeBegin(sf1, &root_degree)); in PetscSFFindMatchingIndices() 1077 PetscCall(PetscSFComputeDegreeEnd(sf1, &root_degree)); in PetscSFFindMatchingIndices() 1093 PetscCall(PetscSFGatherBegin(sf1, MPIU_SF_NODE, roots, buffer)); in PetscSFFindMatchingIndices() 1094 PetscCall(PetscSFGatherEnd(sf1, MPIU_SF_NODE, roots, buffer)); in PetscSFFindMatchingIndices() 1099 …if (!areIndicesSame) PetscCall(PetscSFSetGraphLayout(sf1, layout, numLeafIndices, NULL, PETSC_OWN_… in PetscSFFindMatchingIndices() 1101 …PetscCall(PetscSectionMigrateData(sf1, MPIU_SF_NODE, sectionBuffer, buffer, matchSection_, (void *… in PetscSFFindMatchingIndices() [all …]
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.c | 6448 PetscSF sf1; in MatSetPreallocationCOO_MPIAIJ() local 6454 PetscCall(PetscSFCreate(comm, &sf1)); in MatSetPreallocationCOO_MPIAIJ() 6463 …PetscCall(PetscSFSetGraph(sf1, nroots, nleaves, NULL, PETSC_OWN_POINTER, iremote, PETSC_OWN_POINTE… in MatSetPreallocationCOO_MPIAIJ() 6464 …PetscCall(PetscSFFetchAndOpWithMemTypeBegin(sf1, MPIU_INT, PETSC_MEMTYPE_HOST, &nroots2 /*rootdata… in MatSetPreallocationCOO_MPIAIJ() 6465 …PetscCall(PetscSFFetchAndOpEnd(sf1, MPIU_INT, &nroots2, nentries, offsets, MPI_SUM)); /* Would nro… in MatSetPreallocationCOO_MPIAIJ() 6466 PetscCall(PetscSFDestroy(&sf1)); in MatSetPreallocationCOO_MPIAIJ()
|