<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">Hi Barry/Matt, </p>
<p style="margin:0px 0px 1.2em!important">The fix to this bug would be to disable <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">replacearray</code> op on a subvector. I modified the source code for <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">vecio.c</code> forcing <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">VecLoad_HDF5</code> to always perform an array copy and the above test passes for both binary and hdf5 viewers in serial and parallel. </p>
<p style="margin:0px 0px 1.2em!important">I can open a PR that adds a line <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">Z->ops->replacearray = NULL;</code> at line 1286 in the rvector.c file if one of you can confirm that the above logic is correct. The example attached in the last email could be used as a test for the same if necessary. </p>
<p style="margin:0px 0px 1.2em!important">Thank You,<br>Sajid Ali | PhD Candidate<br>Applied Physics<br>Northwestern University<br><a href="http://s-sajid-ali.github.io">s-sajid-ali.github.io</a></p>
<div title="MDH:PGRpdj48ZGl2IGRpcj0ibHRyIiBnbWFpbF9vcmlnaW5hbD0iMSI+CjxwIHN0eWxlPSJtYXJnaW46
IDBweCAwcHggMS4yZW07Ij5IaSBCYXJyeS9NYXR0LCA8L3A+Cgo8L2Rpdj5UaGUgZml4IHRvIHRo
aXMgYnVnIHdvdWxkIGJlIHRvIGRp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