[petsc-users] VecGetSubVector causes NaN

ehsan sadrfaridpour it.sadr at gmail.com
Wed Jun 22 11:21:24 CDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160622/af033106/attachment.html>


More information about the petsc-users mailing list