<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 7, 2014 at 4:38 AM, Justin Chang <span dir="ltr"><<a href="mailto:jychang48@gmail.com" target="_blank">jychang48@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,<br><br>So I have a binary datafile with auxiliary data for a vector in my FEM code and I want it to be read in parallel. If I have a vector created from DMCreateLocalVector and assuming that the binary auxiliary datafile has the correct global number of entries, can VecLoad read the file in parallel? I don't see any examples illustrating this, but if there are any can someone point me to them?<br></div></div></blockquote><div><br></div><div>VecLoad() works with files generated by VecView(). Otherwise, you have to load the data yourself. I recommend</div><div>writing a small program to load your data in serial and save it as a PETSc binary file. Then loading in parallel will</div><div>work using VecLoad.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div>Thanks,<br>Justin<br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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></div>