[petsc-users] Changed output of VecView in 3.2

Matthew Knepley knepley at gmail.com
Thu Nov 10 08:21:42 CST 2011


On Thu, Nov 10, 2011 at 12:14 PM, Manfred Gratt <manfred.gratt at uibk.ac.at>wrote:

> Hello,
>
> I am using petsc since 3.1 and upgraded my program to 3.2. I have now the
> problem that the Vector output in ASCII has changed.
> From only a list of numbers to the name of process that had the data and
> then the numbers. Like this:
>
> Vector Object: 2 MPI processes
>  type: mpi
> Process [0]
> 0
> 0
> 0
>
> Is there a option to change it back to only display numbers again?
>

You can use a different viewer format, like SYMMODU or PCICE.

   Matt


> I use this output only for a rough estimation if the solution is correct
> and I don't want to rewrite the tool to check the correctness.
> I use the viewer like this:
>
> PetscViewer viewer;
> PetscViewerASCIIOpen( PETSC_COMM_WORLD, solfname.c_str(), &viewer);
> VecView( uT, viewer);
> PetscViewerDestroy( &viewer);
>
> Thanks
> Manfred
>



-- 
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/20111110/637a5e4e/attachment.htm>


More information about the petsc-users mailing list