PetscSectionSetBlockStarts — PETSc 3.24.5 documentation

Skip to main content
`Ctrl`+`K`

# PetscSectionSetBlockStarts

Sets a table indicating which points start new blocks

## Synopsis

    #include "petscsection.h"
    PetscErrorCode PetscSectionSetBlockStarts(PetscSection s, PetscBT blockStarts)

Not Collective, No Fortran Support

## Input Parameters

- s - the `PetscSection`

- blockStarts - The `PetscBT` with a 1 for each point that begins a block

## Notes

The table is on [0, `pEnd` - `pStart`). PETSc takes ownership of the `PetscBT` when it is passed in and will destroy it. The user should not destroy it.

This information is used by `DMCreateMatrix()` to create a variable block size description which is set using `MatSetVariableBlockSizes()`.

## See Also

Low-level Vector Communication, `IS`, `PetscSection`, `PetscSectionGetBlockStarts()`, `PetscSectionCreate()`, `DMCreateMatrix()`, `MatSetVariableBlockSizes()`

## Level

intermediate

## Location

src/vec/is/section/interface/section.c

Index of all PetscSection routines
Table of Contents for all manual pages
Index of all manual pages