Hi J-P,

Thanks for the suggestion. However, I doubt that serialize() has the 
implementation that I need as it is for the Subscriptor base class and I do not 
see any overloading of this method for PETScWrappers::VectorBase or 
PETScWrappers::MPI::Vector to give the parallel read/write capability.

I think the closest functionality available is that of 
PETScWrappers::VectorBase::write_ascii()….. and I am looking something like 
PETScWrappers::MPI::Vector::write_ascii() and 
PETScWrappers::MPI::Vector::read_ascii() 

Thanks,
Shiva

> On Jun 2, 2016, at 1:05 AM, Jean-Paul Pelteret <[email protected]> wrote:
> 
> Hi Shiva,
> 
> I do believe that the serialize() 
> <https://www.dealii.org/8.4.0/doxygen/deal.II/classSubscriptor.html#a68efd17a8330ab676d9cd711029b0f38>
>  function is the one that you're looking for. Its a function thats inherited 
> from the Subscriptor base class.
> 
> J-P
> 
> On Thursday, June 2, 2016 at 12:14:30 AM UTC+2, Shiva Rudraraju wrote:
> Hi,
> 
> Wondering if there is any existing implementation for reading and writing 
> PETScWrappers::MPI::Vector to files, essentially to get a restart capability 
> in time stepping computations. PETScWrappers::VectorBase::write_ascii() 
> provides the equivalent of  VecView. But looking for something which is the 
> equivalent of Petsc VecLoad and which works in parallel. 
> 
> If not, I can give a try to implement a new method 
> PETScWrappers::VectorBase::read_ascii(). 
> 
> Thanks,
> Shiva 
> 
> Shiva Rudraraju
> Asst. Research Scientist, Mechanical Engineering
> University of Michigan Ann Arbor.
> 
> 
> -- 
> The deal.II project is located at http://www.dealii.org/ 
> <http://www.dealii.org/>
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en 
> <https://groups.google.com/d/forum/dealii?hl=en>
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/dealii/55ZQS7uRyjs/unsubscribe 
> <https://groups.google.com/d/topic/dealii/55ZQS7uRyjs/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to