163#if (PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR >= 3)
166 VecCreate(PETSC_COMM_WORLD, &vec);
167 VecSetBlockSize(vec, stride);
169 VecSetType(vec,VECMPI);
173 VecSetBlockSize(vec, stride);
175#if (PETSC_VERSION_MAJOR == 3)
176 VecSetOption(vec, VEC_IGNORE_OFF_PROC_ENTRIES, PETSC_TRUE);
178 VecSetOption(vec, VEC_IGNORE_OFF_PROC_ENTRIES);