endof finally working for PetscVec_