# DMSlicedSetBlockFills
Sets the fill pattern in each block for a multi-component problem of the matrix returned by DMSlicedGetMatrix(). 
## Synopsis
```
#include "petscdmsliced.h" 
PetscErrorCode DMSlicedSetBlockFills(DM dm, const PetscInt *dfill, const PetscInt *ofill)
```
Logically Collective on dm


## Input Parameters

- ***sliced -*** the DM object
- ***dfill -*** the fill pattern in the diagonal block (may be NULL, means use dense block)
- ***ofill -*** the fill pattern in the off-diagonal blocks



## Notes
This only makes sense for multicomponent problems using scalar matrix formats (AIJ).
See DMDASetBlockFills() for example usage.




## See Also
`DMSlicedGetMatrix()`, `DMDASetBlockFills()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/sliced/sliced.c.html#DMSlicedSetBlockFills">src/dm/impls/sliced/sliced.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/sliced/sliced.c)


[Index of all DM routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
