[petsc-users] VecView in AO to a binary file?

Matthew Knepley knepley at gmail.com
Sat Feb 16 08:58:35 CST 2013


On Sat, Feb 16, 2013 at 9:40 AM, Hui Zhang <mike.hui.zhang at hotmail.com>wrote:

> I have an AO that defines a global ordering.  I want to write a Vec into a
> binary file in the global ordering defined by AO.  How to do it?  Thanks in
> advance!


I think the easiest way is to map the IS rowStart...rowEnd using
PetscToApplication, and then
create a VecScatter with those two ISes.

   Matt

-- 
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/20130216/7c9df0c6/attachment.html>


More information about the petsc-users mailing list