<div dir="ltr"><div dir="ltr">On Mon, Jul 27, 2020 at 6:09 PM Sajid Ali <<a href="mailto:sajidsyed2021@u.northwestern.edu">sajidsyed2021@u.northwestern.edu</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi PETSc-developers, <br><br></div>When I load data (using VecLoad) into a subvector, the parent vector does not seem to get the data after the subvector is restored. I tried doing a VecSet to verify that the index set (used to select the subvector) is valid and the values set by VecSet are transferred back to the parent vector. Could anyone point out if I'm missing something when I try transferring the data via a VecLoad from a subvector to the parent vector ?<br><br></div>I'm attaching the code for selecting the subvector and loading data along with a test hdf5 file (filled with random values). I expect the output `testload.h5` to be a vector of size 100 with the first 50 being 1 and the rest being the input values. </div></blockquote><div><br></div><div>You should be able to see with the debugger why the update does not happen. My guess is that the state is not updated. It should be updated</div><div>by VecReplaceArray(), so I do not understand, but you should be able to see it clearly in gdb.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Thank You,<br></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px">Sajid Ali | PhD Candidate<br></div><div style="font-size:12.8px">Applied Physics<br></div><div style="font-size:12.8px">Northwestern University</div><div style="font-size:12.8px"><a href="http://s-sajid-ali.github.io" target="_blank">s-sajid-ali.github.io</a></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>