| /petsc/include/petsc/private/ |
| H A D | dmimpl.h | 276 PetscSection globalSection; /* Layout for global vectors */ member 478 …PetscCheck(dm->globalSection, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "DM must have… in DMGetGlobalOffset_Private() 479 PetscCall(PetscSectionGetOffset(dm->globalSection, point, start)); in DMGetGlobalOffset_Private() 480 PetscCall(PetscSectionGetDof(dm->globalSection, point, &dof)); in DMGetGlobalOffset_Private() 481 PetscCall(PetscSectionGetConstraintDof(dm->globalSection, point, &cdof)); in DMGetGlobalOffset_Private() 486 const PetscSection s = dm->globalSection; in DMGetGlobalOffset_Private() 504 …PetscCheck(dm->globalSection, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "DM must have… in DMGetGlobalFieldOffset_Private() 505 PetscCall(PetscSectionGetOffset(dm->globalSection, point, start)); in DMGetGlobalFieldOffset_Private() 521 const PetscSection gs = dm->globalSection; in DMGetGlobalFieldOffset_Private()
|
| /petsc/doc/manual/ |
| H A D | section.md | 146 …a with constraints, we use a pair of `PetscSections` called the `localSection` and `globalSection`. 153 To do this, we introduce three new concepts; a `localSection`, `globalSection`, `pointSF`, and `sec… 163 To generate the `globalSection` we use `PetscSectionCreateGlobalSection()`, which takes the `localS… 166 The `globalSection` can be used to create global vectors, just as the local section is used to crea… 173 The `localSection`, `globalSection`, `pointSF`, and `sectionSF` on a `DM` can be obtained via `DMGe… 179 In addition to describing parallel data, the `localSection`/`globalSection` pair can be used to des… 185 This must be done before `PetscSectionCreateGlobalSection()` is called to create the `globalSection… 187 Note that it is possible to have constraints set in a `localSection`, but have the `globalSection` …
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 128 …ErrorCode PetscSFSetGraphSection(PetscSF sf, PetscSection localSection, PetscSection globalSection) in PetscSFSetGraphSection() argument 141 PetscValidHeaderSpecific(globalSection, PETSC_SECTION_CLASSID, 3); in PetscSFSetGraphSection() 146 PetscCall(PetscSectionGetChart(globalSection, &pStart, &pEnd)); in PetscSFSetGraphSection() 147 PetscCall(PetscSectionGetConstrainedStorageSize(globalSection, &nroots)); in PetscSFSetGraphSection() 156 PetscCall(PetscSectionGetDof(globalSection, p, &gdof)); in PetscSFSetGraphSection() 157 PetscCall(PetscSectionGetConstraintDof(globalSection, p, &gcdof)); in PetscSFSetGraphSection() 171 PetscCall(PetscSectionGetDof(globalSection, p, &gdof)); in PetscSFSetGraphSection() 172 PetscCall(PetscSectionGetConstraintDof(globalSection, p, &gcdof)); in PetscSFSetGraphSection() 173 PetscCall(PetscSectionGetOffset(globalSection, p, &goff)); in PetscSFSetGraphSection()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 77 v->globalSection = NULL; in DMCreate() 739 PetscCall(PetscSectionDestroy(&(*dm)->globalSection)); in DMDestroy() 4423 PetscCall(PetscSectionDestroy(&dm->globalSection)); in DMSetLocalSection() 4557 …faultSectionCheckConsistency_Internal(DM dm, PetscSection localSection, PetscSection globalSection) in DMDefaultSectionCheckConsistency_Internal() argument 4571 PetscCall(PetscSectionGetChart(globalSection, &pStart, &pEnd)); in DMDefaultSectionCheckConsistency_Internal() 4572 PetscCall(PetscSectionGetConstrainedStorageSize(globalSection, &nroots)); in DMDefaultSectionCheckConsistency_Internal() 4584 PetscCall(PetscSectionGetDof(globalSection, p, &gdof)); in DMDefaultSectionCheckConsistency_Internal() 4585 PetscCall(PetscSectionGetConstraintDof(globalSection, p, &gcdof)); in DMDefaultSectionCheckConsistency_Internal() 4586 PetscCall(PetscSectionGetOffset(globalSection, p, &goff)); in DMDefaultSectionCheckConsistency_Internal() 4658 if (!dm->globalSection) { in DMGetGlobalSection() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsfc.c | 562 PetscSection globalSection; in DMPlexCorrectOrientationForIsoperiodic() local 571 …onCreateGlobalSection(localSection, pointSF, PETSC_TRUE, PETSC_TRUE, PETSC_FALSE, &globalSection)); in DMPlexCorrectOrientationForIsoperiodic() 575 PetscCall(PetscSectionGetStorageSize(globalSection, &global_vec_length)); in DMPlexCorrectOrientationForIsoperiodic() 582 PetscCall(PetscSFSetGraphSection(sectionSF, localSection, globalSection)); in DMPlexCorrectOrientationForIsoperiodic() 589 PetscCall(PetscSectionDestroy(&globalSection)); in DMPlexCorrectOrientationForIsoperiodic()
|
| H A D | plexfem.c | 303 PetscSection section, globalSection; in DMPlexCreateRigidBody() local 318 PetscCall(DMGetGlobalSection(dm, &globalSection)); in DMPlexCreateRigidBody() 319 PetscCall(PetscSectionGetConstrainedStorageSize(globalSection, &n)); in DMPlexCreateRigidBody() 392 PetscSection section, globalSection; in DMPlexCreateRigidBodies() local 402 PetscCall(DMGetGlobalSection(dm, &globalSection)); in DMPlexCreateRigidBodies() 403 PetscCall(PetscSectionGetConstrainedStorageSize(globalSection, &n)); in DMPlexCreateRigidBodies() 4618 …puteJacobian_Patch_Internal(DM dm, PetscSection section, PetscSection globalSection, IS cellIS, Pe… in DMPlexComputeJacobian_Patch_Internal() argument 4783 …if (assembleJac) PetscCall(DMPlexMatSetClosure_Internal(dm, section, globalSection, mesh->useMatCl… in DMPlexComputeJacobian_Patch_Internal() 4784 …PetscCall(DMPlexMatSetClosure_Internal(dm, section, globalSection, mesh->useMatClPerm, JP, cell, &… in DMPlexComputeJacobian_Patch_Internal() 5913 PetscSection globalSection; in DMPlexComputeBdJacobianSingleByLabel() local [all …]
|
| H A D | plex.c | 7749 …etIndicesPointFieldsSplit_Internal(PetscSection section, PetscSection globalSection, PetscInt poin… in DMPlexGetIndicesPointFieldsSplit_Internal() argument 7763 PetscCall(PetscSectionGetFieldOffset(globalSection, point, f, &foff)); in DMPlexGetIndicesPointFieldsSplit_Internal() 8413 PetscErrorCode DMPlexMatSetClosure_Internal(DM dm, PetscSection section, PetscSection globalSection… in DMPlexMatSetClosure_Internal() argument 8425 if (!globalSection) PetscCall(DMGetGlobalSection(dm, &globalSection)); in DMPlexMatSetClosure_Internal() 8426 PetscValidHeaderSpecific(globalSection, PETSC_SECTION_CLASSID, 3); in DMPlexMatSetClosure_Internal() 8429 …PetscCall(DMPlexGetClosureIndices(dm, section, globalSection, point, useClPerm, &numIndices, &indi… in DMPlexMatSetClosure_Internal() 8440 …PetscCall(DMPlexRestoreClosureIndices(dm, section, globalSection, point, PETSC_TRUE, &numIndices, … in DMPlexMatSetClosure_Internal() 8451 …PetscCall(DMPlexRestoreClosureIndices(dm, section, globalSection, point, PETSC_TRUE, &numIndices, … in DMPlexMatSetClosure_Internal() 8474 PetscErrorCode DMPlexMatSetClosure(DM dm, PetscSection section, PetscSection globalSection, Mat A, … in DMPlexMatSetClosure() argument 8477 …PetscCall(DMPlexMatSetClosure_Internal(dm, section, globalSection, PETSC_TRUE, A, point, values, m… in DMPlexMatSetClosure() [all …]
|
| /petsc/src/ts/utils/dmplexlandau/kokkos/ |
| H A D | landau.kokkos.cxx | 792 PetscSection section, globalSection; in LandauKokkosJacobian() local 801 PetscCall(DMGetGlobalSection(plex[grid], &globalSection)); in LandauKokkosJacobian() 806 … PetscCall(DMPlexMatSetClosure(plex[grid], section, globalSection, B, ej, elMat, ADD_VALUES)); in LandauKokkosJacobian()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 2137 if (dmB->localSection != dmA->localSection || dmB->globalSection != dmA->globalSection) { in DMShareDiscretization() 2143 PetscCall(PetscObjectReference((PetscObject)dmA->globalSection)); in DMShareDiscretization() 2144 PetscCall(PetscSectionDestroy(&dmB->globalSection)); in DMShareDiscretization() 2145 dmB->globalSection = dmA->globalSection; in DMShareDiscretization()
|
| /petsc/src/dm/impls/network/ |
| H A D | network.c | 1270 PetscCall(PetscSectionGetOffset(network->plex->globalSection, p, &offsetp)); in DMNetworkGetGlobalVecOffset()
|