[petsc-users] Parallel IO for VecLoad?

Matthew Knepley knepley at gmail.com
Thu Nov 6 22:55:55 CST 2014


On Fri, Nov 7, 2014 at 4:38 AM, Justin Chang <jychang48 at gmail.com> wrote:

> Hi all,
>
> 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?
>

VecLoad() works with files generated by VecView(). Otherwise, you have to
load the data yourself. I recommend
writing a small program to load your data in serial and save it as a PETSc
binary file. Then loading in parallel will
work using VecLoad.

  Thanks,

     Matt


> Thanks,
> Justin
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141107/a189c0bd/attachment.html>


More information about the petsc-users mailing list