# VecAssemblyBegin

Begins assembling the vector. This routine should be called after completing all calls to VecSetValues().

### Synopsis

    #include "petscvec.h"
    PetscErrorCode PETSCVEC_DLLEXPORT VecAssemblyBegin(Vec vec)

Collective on Vec

### Input Parameter

vec -the vector

### See Also

VecAssemblyEnd(), VecSetValues()

Level:beginner
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/ex2.c.html
src/vec/examples/tutorials/ex3.c.html
src/vec/examples/tutorials/ex5.c.html
src/vec/examples/tutorials/ex8.c.html
src/vec/examples/tutorials/ex9.c.html
src/vec/examples/tutorials/ex10.c.html
src/vec/examples/tutorials/ex2f.F.html
src/vec/examples/tutorials/ex3f.F.html
src/vec/examples/tutorials/ex4f.F.html
src/vec/examples/tutorials/ex4f90.F.html
src/vec/examples/tutorials/ex9f.F.html