<div dir="ltr"><div><div><div><div><div>Hi,<br></div><br>If I use VecGetSubVector to get a subvector it works fine as far as I don't destroy the original vector.<br></div>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?<br><br></div>I do the same thing with <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetSubMatrix.html#MatGetSubMatrix" style="font-family:"Times New Roman";font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">MatGetSubMatrix</a> and I haven't had any problem with it.<br><br></div>Best,<br></div>Ehsan<br></div>