Lines Matching refs:globalSection

7741   This version believes the globalSection offsets for each field, rather than just the point offset
7749 static PetscErrorCode DMPlexGetIndicesPointFieldsSplit_Internal(PetscSection section, PetscSection globalSection, PetscInt point, PetscInt foffs[], const PetscInt ***perms, PetscInt permsoff, const PetscInt indperm[], PetscInt indices[])
7763 PetscCall(PetscSectionGetFieldOffset(globalSection, point, f, &foff));
8413 PetscErrorCode DMPlexMatSetClosure_Internal(DM dm, PetscSection section, PetscSection globalSection, PetscBool useClPerm, Mat A, PetscInt point, const PetscScalar values[], InsertMode mode)
8425 if (!globalSection) PetscCall(DMGetGlobalSection(dm, &globalSection));
8426 PetscValidHeaderSpecific(globalSection, PETSC_SECTION_CLASSID, 3);
8429 PetscCall(DMPlexGetClosureIndices(dm, section, globalSection, point, useClPerm, &numIndices, &indices, NULL, (PetscScalar **)&values));
8440 PetscCall(DMPlexRestoreClosureIndices(dm, section, globalSection, point, PETSC_TRUE, &numIndices, &indices, NULL, (PetscScalar **)&values));
8451 PetscCall(DMPlexRestoreClosureIndices(dm, section, globalSection, point, PETSC_TRUE, &numIndices, &indices, NULL, (PetscScalar **)&values));
8464 . globalSection - The section describing the layout in `v`, or `NULL` to use the default global section
8474 PetscErrorCode DMPlexMatSetClosure(DM dm, PetscSection section, PetscSection globalSection, Mat A, PetscInt point, const PetscScalar values[], InsertMode mode)
8477 PetscCall(DMPlexMatSetClosure_Internal(dm, section, globalSection, PETSC_TRUE, A, point, values, mode));
8986 PetscSection section, globalSection;
8995 PetscCall(PetscSectionCreateGlobalSection(section, sf, PETSC_TRUE, PETSC_FALSE, PETSC_FALSE, &globalSection));
8998 PetscCall(PetscSectionGetOffset(globalSection, p, &numbers[p - pStart]));
9005 PetscCall(PetscSectionGetPointLayout(PetscObjectComm((PetscObject)dm), globalSection, &layout));
9010 PetscCall(PetscSectionDestroy(&globalSection));