# MatScaLAPACKSetBlockSizes
Sets the block sizes to be used for the distribution of the `MATSCALAPACK` matrix 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatScaLAPACKSetBlockSizes(Mat A, PetscInt mb, PetscInt nb)
```
Logically Collective


## Input Parameters

- ***A  -*** a `MATSCALAPACK` matrix
- ***mb -*** the row block size
- ***nb -*** the column block size





## See Also
 `MATSCALAPACK`, `MatCreateScaLAPACK()`, `MatScaLAPACKGetBlockSizes()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/scalapack/matscalapack.c.html#MatScaLAPACKSetBlockSizes">src/mat/impls/scalapack/matscalapack.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/scalapack/matscalapack.c.html#MatScaLAPACKSetBlockSizes_ScaLAPACK">MatScaLAPACKSetBlockSizes_ScaLAPACK in src/mat/impls/scalapack/matscalapack.c</A><BR>


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


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