Adds missing VecCreate.

This commit is contained in:
Jørgen Kvalsvik
2014-12-10 18:15:13 +01:00
parent e2e6299ee6
commit ed18b283f1

View File

@@ -150,6 +150,7 @@ namespace{
PetscScalar* vec;
Vec v;
VecCreate( PETSC_COMM_WORLD, &v );
VecSetSizes( v, PETSC_DECIDE, size );
VecSetFromOptions( v );