<p>You can set the "native" format to avoid doing this reordering.</p>
<p><a href="http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-dev/docs/manualpages/Viewer/PetscViewerSetFormat.html">http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-dev/docs/manualpages/Viewer/PetscViewerSetFormat.html</a></p>
<p><blockquote type="cite">On Mar 22, 2011 2:28 AM, "Barry Smith" <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br><br><p><font color="#500050"><br>On Mar 21, 2011, at 8:11 PM, Алексей Рязанов wrote:<br>
<br>> Hi<br>> <br>> Is it ok, that VecView doesn't work ...</font></p> VecView() for DM global vectors present the vector entries in the global natural ordering. Since PETSc divides the domain with DA into squareish blocks when you print the values on a process (by calling DAVecGetArray) it is not in the global natural ordering. Hence the two are different.<br>
<font color="#888888"><br>
Barry<br>
</font><p><font color="#500050"> <br>> Thank you very much!<br>> <br>> Alexey Ryazanov.<br>> <br>> <br>> <br>> CODE:<br>> <br>> #include "petscksp.h"<br>> #incl...</font></p></blockquote>
</p>