Adds missing VecCreate.

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

View File

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