Home
last modified time | relevance | path

Searched refs:remoteOffsets (Results 1 – 18 of 18) sorted by relevance

/petsc/src/dm/impls/plex/tutorials/
H A Dex14f90.F9013 PetscInt, dimension(:), pointer :: remoteOffsets
55 PetscCallA(PetscSFCreateRemoteOffsets(pointSF, section, section, remoteOffsets, ierr))
58 PetscCallA(PetscSFCreateSectionSF(pointSF, section, remoteOffsets, section, sectionSF, ierr))
59 if (associated(remoteOffsets)) then
60 PetscCallA(PetscSFDestroyRemoteOffsets(remoteOffsets, ierr))
H A Dex14.c15 PetscInt *remoteOffsets; in main() local
57 PetscCall(PetscSFCreateRemoteOffsets(pointSF, section, section, &remoteOffsets)); in main()
60 PetscCall(PetscSFCreateSectionSF(pointSF, section, remoteOffsets, section, &sectionSF)); in main()
61 PetscCall(PetscFree(remoteOffsets)); in main()
/petsc/src/dm/impls/plex/
H A Dplexnatural.c75 PetscInt *spoints, *remoteOffsets; in DMPlexCreateGlobalToNaturalSF() local
100 PetscCall(PetscSFDistributeSection(sfMigration, section, &remoteOffsets, sectionDist)); in DMPlexCreateGlobalToNaturalSF()
149 PetscCall(PetscSFCreateSectionSF(sfEmbed, section, remoteOffsets, gLocSection, &sfField)); in DMPlexCreateGlobalToNaturalSF()
165 PetscCall(PetscFree(remoteOffsets)); in DMPlexCreateGlobalToNaturalSF()
198 PetscInt *remoteOffsets; in DMPlexMigrateGlobalToNaturalSF() local
243 PetscCall(PetscMalloc1(lpEnd - lpStart, &remoteOffsets)); in DMPlexMigrateGlobalToNaturalSF()
244 …set(oldGlobalSection->atlasOff, -rpStart), PetscSafePointerPlusOffset(remoteOffsets, -lpStart), MP… in DMPlexMigrateGlobalToNaturalSF()
245 …set(oldGlobalSection->atlasOff, -rpStart), PetscSafePointerPlusOffset(remoteOffsets, -lpStart), MP… in DMPlexMigrateGlobalToNaturalSF()
251 PetscCall(PetscIntView(lpEnd - lpStart, remoteOffsets, viewer)); in DMPlexMigrateGlobalToNaturalSF()
258 …PetscCall(PetscSFCreateSectionSF(sfMigration, oldGlobalSection, remoteOffsets, newGlobalSection, &… in DMPlexMigrateGlobalToNaturalSF()
[all …]
H A Dplexpreallocate.c250 …PetscInt *tmpAdj = NULL, *adj, *rootAdj, *anchorAdj = NULL, *cols, *remoteOffsets, *myRan… in DMPlexCreateAdjacencySection_Static() local
421 PetscCall(PetscSFCreateRemoteOffsets(sfDof, rootSectionAdj, leafSectionAdj, &remoteOffsets)); in DMPlexCreateAdjacencySection_Static()
422 PetscCall(PetscSFCreateSectionSF(sfDof, rootSectionAdj, remoteOffsets, leafSectionAdj, &sfAdj)); in DMPlexCreateAdjacencySection_Static()
423 PetscCall(PetscFree(remoteOffsets)); in DMPlexCreateAdjacencySection_Static()
830 PetscInt *remoteOffsets; in DMPlexPreallocateOperator() local
865 PetscCall(PetscSFCreateRemoteOffsets(sf, section, section, &remoteOffsets)); in DMPlexPreallocateOperator()
866 PetscCall(PetscSFCreateSectionSF(sf, section, remoteOffsets, section, &sfDof)); in DMPlexPreallocateOperator()
867 PetscCall(PetscFree(remoteOffsets)); in DMPlexPreallocateOperator()
H A Dplexinterpolate.c1271 PetscInt *remoteOffsets; in DMPlexInterpolatePointSF() local
1276 …PetscCall(PetscSFDistributeSection(sfInverse, candidateSection, &remoteOffsets, candidateRemoteSec… in DMPlexInterpolatePointSF()
1277 …PetscCall(PetscSFCreateSectionSF(sfInverse, candidateSection, remoteOffsets, candidateRemoteSectio… in DMPlexInterpolatePointSF()
1284 PetscCall(PetscFree(remoteOffsets)); in DMPlexInterpolatePointSF()
1414 PetscInt *remoteOffsets, *localPointsNew; in DMPlexInterpolatePointSF() local
1420 …PetscCall(PetscSFDistributeSection(sfMulti, candidateRemoteSection, &remoteOffsets, claimSection)); in DMPlexInterpolatePointSF()
1421 …PetscCall(PetscSFCreateSectionSF(sfMulti, candidateRemoteSection, remoteOffsets, claimSection, &sf… in DMPlexInterpolatePointSF()
1428 PetscCall(PetscFree(remoteOffsets)); in DMPlexInterpolatePointSF()
H A Dplexdistribute.c1008 PetscInt *remoteOffsets, fieldSize; in DMPlexDistributeField() local
1013 PetscCall(PetscSFDistributeSection(pointSF, originalSection, &remoteOffsets, newSection)); in DMPlexDistributeField()
1021 PetscCall(PetscSFCreateSectionSF(pointSF, originalSection, remoteOffsets, newSection, &fieldSF)); in DMPlexDistributeField()
1022 PetscCall(PetscFree(remoteOffsets)); in DMPlexDistributeField()
1106 PetscInt *remoteOffsets, *cones, *globCones, *newCones, newConesSize; in DMPlexDistributeCones() local
1117 …PetscCall(PetscSFDistributeSection(migrationSF, originalConeSection, &remoteOffsets, newConeSectio… in DMPlexDistributeCones()
1120 …PetscCall(PetscSFCreateSectionSF(migrationSF, originalConeSection, remoteOffsets, newConeSection, … in DMPlexDistributeCones()
1121 PetscCall(PetscFree(remoteOffsets)); in DMPlexDistributeCones()
H A Dplextree.c3478 PetscInt *remoteOffsets, numRootIndices; in DMPlexTransferInjectorTree() local
3482 PetscCall(PetscSFDistributeSection(multiInv, leafIndicesSec, &remoteOffsets, rootIndicesSec)); in DMPlexTransferInjectorTree()
3483 …PetscCall(PetscSFCreateSectionSF(multiInv, leafIndicesSec, remoteOffsets, rootIndicesSec, &indices… in DMPlexTransferInjectorTree()
3484 PetscCall(PetscFree(remoteOffsets)); in DMPlexTransferInjectorTree()
/petsc/src/vec/is/sf/utils/
H A Dsfutils.c238 …scSFDistributeSection(PetscSF sf, PetscSection rootSection, PetscInt *remoteOffsets[], PetscSectio… in PetscSFDistributeSection() argument
249 if (remoteOffsets) PetscAssertPointer(remoteOffsets, 3); in PetscSFDistributeSection()
332 if (remoteOffsets) { in PetscSFDistributeSection()
333 PetscCall(PetscMalloc1(lpEnd - lpStart, remoteOffsets)); in PetscSFDistributeSection()
334 …sOffset(rootSection->atlasOff, -rpStart), PetscSafePointerPlusOffset(*remoteOffsets, -lpStart), MP… in PetscSFDistributeSection()
335 …sOffset(rootSection->atlasOff, -rpStart), PetscSafePointerPlusOffset(*remoteOffsets, -lpStart), MP… in PetscSFDistributeSection()
393 …eOffsets(PetscSF sf, PetscSection rootSection, PetscSection leafSection, PetscInt *remoteOffsets[]) in PetscSFCreateRemoteOffsets() argument
404 PetscAssertPointer(remoteOffsets, 4); in PetscSFCreateRemoteOffsets()
405 *remoteOffsets = NULL; in PetscSFCreateRemoteOffsets()
416 PetscCall(PetscCalloc1(lpEnd - lpStart, remoteOffsets)); in PetscSFCreateRemoteOffsets()
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DSF.pyx345 …def createSectionSF(self, Section rootSection, remoteOffsets: Sequence[int] | None, Section leafSe…
357 remoteOffsets
372 if remoteOffsets is not None:
373 remoteOffsets = iarray_i(remoteOffsets, &noffsets, &cremoteOffsets)
400 cdef ndarray remoteOffsets
409 remoteOffsets = array_i(lpEnd-lpStart, cremoteOffsets)
411 return (remoteOffsets, leafSection)
/petsc/include/petsc/private/
H A Dcharacteristicimpl.h78 …PetscInt *remoteOffsets; /* Offset into remote queue for each process (Prefix sums of fill_coun… member
/petsc/src/ts/characteristic/interface/
H A Dcharacteristic.c64 PetscCall(PetscFree((*c)->remoteOffsets)); in CharacteristicDestroy()
130 newC->remoteOffsets = NULL; in CharacteristicCreate()
591 c->queueRemoteMax = c->remoteOffsets[0] = 0; in CharacteristicSendCoordinatesBegin()
593 c->remoteOffsets[n] = c->queueRemoteMax; in CharacteristicSendCoordinatesBegin()
609 …PetscCallMPI(MPIU_Irecv(&(c->queueRemote[c->remoteOffsets[n]]), c->fillCount[n], c->itemType, c->n… in CharacteristicSendCoordinatesBegin()
642 …for (n = 1; n < c->numNeighbors; n++) PetscCallMPI(MPIU_Send(&(c->queueRemote[c->remoteOffsets[n]]… in CharacteristicGetValuesBegin()
/petsc/src/ts/characteristic/impls/da/
H A Dslda.c64 PetscCall(PetscMalloc1(c->numNeighbors, &c->remoteOffsets)); in CharacteristicSetUp_DA()
/petsc/src/dm/impls/plex/tests/
H A Dex62f90.F9079 PetscInt, pointer :: remoteOffsets(:)
295 … PetscCallA(PetscSFDistributeSection(natPointSFInv, rootSection, remoteOffsets, leafSection, ierr))
296 PetscCallA(PetscSFDestroyRemoteOffsets(remoteOffsets, ierr))
/petsc/src/dm/label/
H A Ddmlabel.c1911 PetscInt *remoteOffsets, *rootStrata, *rootIdx; in DMLabelDistribute_Internal() local
1952 PetscCall(PetscSFDistributeSection(sf, rootSection, &remoteOffsets, *leafSection)); in DMLabelDistribute_Internal()
1953 PetscCall(PetscSFCreateSectionSF(sf, rootSection, remoteOffsets, *leafSection, &labelSF)); in DMLabelDistribute_Internal()
1954 PetscCall(PetscFree(remoteOffsets)); in DMLabelDistribute_Internal()
/petsc/src/ksp/pc/impls/patch/
H A Dpcpatch.c201 PetscInt *remoteOffsets = NULL; in PCPatchCreateDefaultSF_Private() local
255 PetscCall(PetscMalloc1(n * numRanks, &remoteOffsets)); in PCPatchCreateDefaultSF_Private()
269 PetscCall(PetscSFBcastBegin(rankSF, contig, offsets, remoteOffsets, MPI_REPLACE)); in PCPatchCreateDefaultSF_Private()
270 PetscCall(PetscSFBcastEnd(rankSF, contig, offsets, remoteOffsets, MPI_REPLACE)); in PCPatchCreateDefaultSF_Private()
291 rootOffset = remoteOffsets[n * idx + i]; in PCPatchCreateDefaultSF_Private()
302 PetscCall(PetscFree(remoteOffsets)); in PCPatchCreateDefaultSF_Private()
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c2005 PetscInt *rootPointsNew, *remoteOffsets; in DMPlexTransformCreateSF() local
2049 PetscCall(PetscSFCreateRemoteOffsets(sf, s, s, &remoteOffsets)); in DMPlexTransformCreateSF()
2050 PetscCall(PetscSFCreateSectionSF(sf, s, remoteOffsets, s, &rsf)); in DMPlexTransformCreateSF()
2051 PetscCall(PetscFree(remoteOffsets)); in DMPlexTransformCreateSF()
/petsc/src/vec/is/section/interface/
H A Dsection.c4104 PetscInt *remoteOffsets, fieldSize; in PetscSectionMigrateData() local
4120 PetscCall(PetscSFDistributeSection(migratePointSF, rootSection, &remoteOffsets, leafSection)); in PetscSectionMigrateData()
4121 …PetscCall(PetscSFCreateSectionSF(migratePointSF, rootSection, remoteOffsets, leafSection, &fieldSF… in PetscSectionMigrateData()
4122 PetscCall(PetscFree(remoteOffsets)); in PetscSectionMigrateData()
/petsc/src/dm/impls/forest/p4est/
H A Dpforest.h4624 PetscInt *remoteOffsets; in DMForestTransferVecFromBase_pforest() local
4649 PetscCall(PetscSFDistributeSection(basetocoarse, secIn, &remoteOffsets, secOut)); in DMForestTransferVecFromBase_pforest()
4650 PetscCall(PetscSFCreateSectionSF(basetocoarse, secIn, remoteOffsets, secOut, &transferSF)); in DMForestTransferVecFromBase_pforest()
4651 PetscCall(PetscFree(remoteOffsets)); in DMForestTransferVecFromBase_pforest()