Hi,

If I use VecGetSubVector to get a subvector it works fine as far as I don't
destroy the original vector.
But, if I destroy the original vector, I get NaN values. So, it is my
misunderstanding of what the function suppose to do, or is it a problem?

I do the same thing with MatGetSubMatrix
<http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetSubMatrix.html#MatGetSubMatrix>
and I haven't had any problem with it.

Best,
Ehsan

Reply via email to