VecSetBlockSize#

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

Synopsis#

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

Logically Collective

Input Parameters#

  • v - the vector

  • bs - the blocksize

Notes#

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

See Also#

VecSetValuesBlocked(), VecSetLocalToGlobalMapping(), VecGetBlockSize()

Level#

advanced

Location#

src/vec/vec/interface/vector.c

Examples#

src/vec/vec/utils/tagger/tutorials/ex1.c.html
src/vec/vec/tutorials/ex11.c.html
src/vec/vec/tutorials/ex11f90.F90.html
src/vec/vec/tutorials/ex11f.F90.html
src/vec/vec/tutorials/ex12.c.html
src/vec/vec/tutorials/ex12f.F90.html
src/vec/vec/tutorials/ex13.c.html
src/vec/vec/tutorials/ex16.c.html
src/vec/vec/tutorials/ex16f.F90.html
src/vec/vec/tutorials/ex19.c.html
src/dm/field/tutorials/ex1.c.html


Edit on GitLab

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