| /petsc/src/vec/is/sf/utils/ftn-custom/ |
| H A D | zsfutilsf90.c | 25 PETSC_EXTERN void petscsfdistributesection_(PetscSF *sf, PetscSection *rootSection, F90Array1d *ptr… in petscsfdistributesection_() argument 28 *ierr = PetscSFDistributeSection(*sf, *rootSection, NULL, *leafSection); in petscsfdistributesection_() 33 *ierr = PetscSFDistributeSection(*sf, *rootSection, &fa, *leafSection); in petscsfdistributesection_() 41 PETSC_EXTERN void petscsfcreateremoteoffsets_(PetscSF *pointSF, PetscSection *rootSection, PetscSec… in petscsfcreateremoteoffsets_() argument 46 *ierr = PetscSFCreateRemoteOffsets(*pointSF, *rootSection, *leafSection, &fa); in petscsfcreateremoteoffsets_()
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 238 PetscErrorCode PetscSFDistributeSection(PetscSF sf, PetscSection rootSection, PetscInt *remoteOffse… in PetscSFDistributeSection() argument 248 PetscValidHeaderSpecific(rootSection, PETSC_SECTION_CLASSID, 2); in PetscSFDistributeSection() 252 PetscCall(PetscSectionGetNumFields(rootSection, &numFields)); in PetscSFDistributeSection() 267 sub[1] = rootSection->bc ? PETSC_TRUE : PETSC_FALSE; in PetscSFDistributeSection() 273 sub[2 + f] = rootSection->field[f]->bc ? PETSC_TRUE : PETSC_FALSE; in PetscSFDistributeSection() 274 PetscCall(PetscSectionGetFieldComponents(rootSection, f, &numComp)); in PetscSFDistributeSection() 275 PetscCall(PetscSectionGetFieldName(rootSection, f, &name)); in PetscSFDistributeSection() 276 PetscCall(PetscSectionGetFieldSym(rootSection, f, &sym)); in PetscSFDistributeSection() 282 for (c = 0; c < rootSection->numFieldComponents[f]; ++c) { in PetscSFDistributeSection() 283 PetscCall(PetscSectionGetComponentName(rootSection, f, c, &name)); in PetscSFDistributeSection() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexdistribute.c | 439 PetscErrorCode DMPlexDistributeOwnership(DM dm, PetscSection rootSection, IS *rootrank, PetscSectio… in DMPlexDistributeOwnership() argument 454 PetscCall(PetscObjectSetName((PetscObject)rootSection, "Root Section")); in DMPlexDistributeOwnership() 455 PetscCall(PetscSectionSetChart(rootSection, pStart, pEnd)); in DMPlexDistributeOwnership() 458 …for (p = pStart; p < pEnd; ++p) PetscCall(PetscSectionSetDof(rootSection, p, rootdegree[p - pStart… in DMPlexDistributeOwnership() 459 PetscCall(PetscSectionSetUp(rootSection)); in DMPlexDistributeOwnership() 461 PetscCall(PetscSectionGetStorageSize(rootSection, &nedges)); in DMPlexDistributeOwnership() 471 PetscCall(DMPlexDistributeFieldIS(dm, sfPoint, rootSection, *rootrank, leafSection, leafrank)); in DMPlexDistributeOwnership() 495 PetscErrorCode DMPlexCreateOverlapLabel(DM dm, PetscInt levels, PetscSection rootSection, IS rootra… in DMPlexCreateOverlapLabel() argument 553 PetscCall(PetscSectionGetDof(rootSection, p, &neighbors)); in DMPlexCreateOverlapLabel() 555 PetscCall(PetscSectionGetOffset(rootSection, p, &noff)); in DMPlexCreateOverlapLabel() [all …]
|
| H A D | plexpartition.c | 1253 PetscSection rootSection; in DMPlexPartitionLabelInvert() local 1268 PetscCall(PetscSectionCreate(comm, &rootSection)); in DMPlexPartitionLabelInvert() 1269 PetscCall(PetscSectionSetChart(rootSection, 0, size)); in DMPlexPartitionLabelInvert() 1275 PetscCall(PetscSectionAddDof(rootSection, neighbors[n], numPoints)); in DMPlexPartitionLabelInvert() 1277 PetscCall(PetscSectionSetUp(rootSection)); in DMPlexPartitionLabelInvert() 1278 PetscCall(PetscSectionGetStorageSize(rootSection, &rootSize)); in DMPlexPartitionLabelInvert() 1285 PetscCall(PetscSectionGetOffset(rootSection, neighbors[n], &off)); in DMPlexPartitionLabelInvert() 1311 PetscCall(PetscSectionGetDof(rootSection, neighbors[n], &dof)); in DMPlexPartitionLabelInvert() 1312 PetscCall(PetscSectionGetOffset(rootSection, neighbors[n], &off)); in DMPlexPartitionLabelInvert() 1358 …PetscCall(DMPlexDistributeData(dm, procSF, rootSection, MPIU_SF_NODE, rootPoints, leafSection, (vo… in DMPlexPartitionLabelInvert() [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | SF.pyx | 345 …def createSectionSF(self, Section rootSection, remoteOffsets: Sequence[int] | None, Section leafSe… argument 354 rootSection 374 CHKERR(PetscSFCreateSectionSF(self.sf, rootSection.sec, cremoteOffsets, 378 …def distributeSection(self, Section rootSection, Section leafSection=None) -> tuple[ArrayInt, Sect… argument 387 rootSection 406 CHKERR(PetscSFDistributeSection(self.sf, rootSection.sec,
|
| /petsc/src/dm/label/ |
| H A D | dmlabel.c | 1912 PetscSection rootSection; in DMLabelDistribute_Internal() local 1921 PetscCall(PetscSectionCreate(comm, &rootSection)); in DMLabelDistribute_Internal() 1922 PetscCall(PetscSectionSetChart(rootSection, 0, nroots)); in DMLabelDistribute_Internal() 1928 …for (l = 0; l < label->stratumSizes[s]; l++) PetscCall(PetscSectionAddDof(rootSection, points[l], … in DMLabelDistribute_Internal() 1932 PetscCall(PetscSectionSetUp(rootSection)); in DMLabelDistribute_Internal() 1934 PetscCall(PetscSectionGetStorageSize(rootSection, &size)); in DMLabelDistribute_Internal() 1944 PetscCall(PetscSectionGetOffset(rootSection, p, &offset)); in DMLabelDistribute_Internal() 1952 PetscCall(PetscSFDistributeSection(sf, rootSection, &remoteOffsets, *leafSection)); in DMLabelDistribute_Internal() 1953 PetscCall(PetscSFCreateSectionSF(sf, rootSection, remoteOffsets, *leafSection, &labelSF)); in DMLabelDistribute_Internal() 1963 PetscCall(PetscSectionDestroy(&rootSection)); in DMLabelDistribute_Internal() [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex62f90.F90 | 17 type(tPetscSection) :: section, rootSection, leafSection 292 PetscCallA(DMGetLocalSection(pdm, rootSection, ierr)) 295 … PetscCallA(PetscSFDistributeSection(natPointSFInv, rootSection, remoteOffsets, leafSection, ierr))
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 4101 …igrateData(PetscSF migratePointSF, MPI_Datatype datatype, PetscSection rootSection, const void *ro… in PetscSectionMigrateData() argument 4109 PetscValidHeaderSpecific(rootSection, PETSC_SECTION_CLASSID, 3); in PetscSectionMigrateData() 4113 PetscCall(PetscSectionGetStorageSize(rootSection, &size)); in PetscSectionMigrateData() 4120 PetscCall(PetscSFDistributeSection(migratePointSF, rootSection, &remoteOffsets, leafSection)); in PetscSectionMigrateData() 4121 …PetscCall(PetscSFCreateSectionSF(migratePointSF, rootSection, remoteOffsets, leafSection, &fieldSF… in PetscSectionMigrateData()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 2933 PetscSection leafSection, rootSection; in DMPforestGetTransferSF_Internal() local 2937 PetscCall(PetscSectionCreate(PETSC_COMM_SELF, &rootSection)); in DMPforestGetTransferSF_Internal() 2939 PetscCall(PetscSectionSetChart(rootSection, pStartC, pEndC)); in DMPforestGetTransferSF_Internal() 2946 for (e = startC; e < endC; e++) PetscCall(PetscSectionSetDof(rootSection, e, dofPerDim[d])); in DMPforestGetTransferSF_Internal() 2956 PetscCall(PetscSectionSetUp(rootSection)); in DMPforestGetTransferSF_Internal() 2966 …for (p = pStartC; p < pEndC; p++) PetscCall(PetscSectionGetOffset(rootSection, p, &offsetsRoot[p -… in DMPforestGetTransferSF_Internal() 2969 PetscCall(PetscSectionGetStorageSize(rootSection, &nroots)); in DMPforestGetTransferSF_Internal() 3000 PetscCall(PetscSectionDestroy(&rootSection)); in DMPforestGetTransferSF_Internal()
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5.c | 2858 static PetscErrorCode DMPlexSectionLoad_HDF5_Internal_CreateDataSF(PetscSection rootSection, PetscL… in DMPlexSectionLoad_HDF5_Internal_CreateDataSF() argument 2868 PetscCall(PetscSectionGetIncludesConstraints(rootSection, &rootIncludeConstraints)); in DMPlexSectionLoad_HDF5_Internal_CreateDataSF() 2877 …PetscCheck(rootSection->pointMajor, PETSC_COMM_SELF, PETSC_ERR_SUP, "No support for field major or… in DMPlexSectionLoad_HDF5_Internal_CreateDataSF()
|