[petsc-users] Changed output of VecView in 3.2

Manfred Gratt manfred.gratt at uibk.ac.at
Thu Nov 10 08:29:26 CST 2011


Jed Brown wrote:
> On Thu, Nov 10, 2011 at 06:14, Manfred Gratt <manfred.gratt at uibk.ac.at 
> <mailto:manfred.gratt at uibk.ac.at>> wrote:
>
>     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?
>
>
> There isn't an option to do this. Of course it's easy to implement, 
> but it's feature-creep.
>  
>
>     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.
>
>
> Is it that hard to update the tests, either by updating the "gold" 
> output, or by passing the results through a filter that strips out 
> those lines, e.g.
>
> perl -pe 's,^(Vector Object:\w* \d+ MPI processes|  type: \w+|Process 
> \[\d+\])\n,,'
Thanks for quick reply. I think I will write a new output function.

Manfred




More information about the petsc-users mailing list