[petsc-users] How to load IS from file

Matthew Knepley knepley at gmail.com
Thu Feb 5 15:38:27 CST 2015


On Thu, Feb 5, 2015 at 3:33 PM, Saurabh Chawdhary <chaw0023 at umn.edu> wrote:

> Hi guys,
> With ISView we can dump the IS into a viewer and file and save it. But how
> can we load the IS back from file into the code.
> ISLoad is a function in current petsc version 3.5 but it doesn't exist in
> version 3.4.5. Is there an alternate way to di the job?
> All we want is the ability to save an IS in current program and read it
> back later. How can this be done in Petsc 3.4.5?
> Help! Help!
>

You should really upgrade. You could use ISGetIndices() and
PetscBinaryWrite() yourself to write the data, but you will have
to manage the parallelism yourself.

   Matt


> Thanks,
> Saurabh
>



-- 
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/20150205/13111916/attachment.html>


More information about the petsc-users mailing list