# VecSetBlockSize

Sets the blocksize for future calls to VecSetValuesBlocked() and VecSetValuesBlockedLocal().

### Synopsis

    #include "petscvec.h"
    int VecSetBlockSize(Vec v,int bs)

Collective on Vec

### Input Parameter

| v | - the vector
| bs | - the blocksize

### Notes

All vectors obtained by VecDuplicate() inherit the same blocksize.

### See Also

VecSetValuesBlocked(), VecSetLocalToGlobalMappingBlocked(), VecGetBlockSize()

Level:advanced
Location: src/vec/interface/vector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/vec/examples/tutorials/ex11.c.html
src/vec/examples/tutorials/ex12.c.html
src/vec/examples/tutorials/ex16.c.html
src/vec/examples/tutorials/ex11f.F.html