[petsc-users] VecView doesn't work properly with DA global vectors

Jed Brown jed at 59A2.org
Tue Mar 22 05:00:01 CDT 2011


On Tue, Mar 22, 2011 at 10:41, Алексей Рязанов <ram at ibrae.ac.ru> wrote:

> Thank You for you answer! Yes now I can see from the output, that VecView
> uses natural ordering, but its also very importaint to understand where (on
> which processor) elements are finaly stored. If I got it in a right way,
> VecView uses natural ordering and gives the WRONG information about actual
> distribution of memory among processors.


The natural ordering is different from the PETSc ordering. If you want to
view the Vec in the order it is stored in, use

PetscViewerPushFormat(viewer,PETSC_VIEWER_NATIVE);
VecView(X,viewer);
PetscViewerPopFormat(viewer);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110322/fabe3610/attachment.htm>


More information about the petsc-users mailing list