# VecAssemblyEnd

Completes assembling the vector. This routine should be called after VecAssemblyBegin().

### Synopsis

    #include "petscvec.h"
    int VecAssemblyEnd(Vec vec)

Collective on Vec

### Input Parameter

vec -the vector

### Options Database Keys

| -vec_view | - Prints vector in ASCII format
| -vec_view_matlab | - Prints vector in ASCII Matlab format to stdout
| -vec_view_matlab_file | - Prints vector in Matlab format to matlaboutput.mat
| -vec_view_draw | - Activates vector viewing using drawing tools
| -display <name> | - Sets display name (default is host)
| -draw_pause <sec> | - Sets number of seconds to pause after display
| -vec_view_socket | - Activates vector viewing using a socket
| -vec_view_ams | - Activates vector viewing using the ALICE Memory Snooper (AMS)

### See Also

VecAssemblyBegin(), 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