[petsc-users] Some possible bugs with PETSC_VIEWER_BINARY_?

Jed Brown jed at jedbrown.org
Sat Aug 2 01:15:10 CDT 2014


"Sun, Hui" <hus003 at ucsd.edu> writes:
> Here you can see I have 4 processors running at the same time. I read in the output from MATLAB using the
>
> command [A,B,C,D,x,b,y] = PetscBinaryRead('binaryoutput').
>
>
> And I visualize the variable y by the commands:
>
> mesh(reshape(y(20001:30000),100,100))
>
> mesh(reshape(y(10001:20000),100,100))
>
> mesh(reshape(y(1:10000),100,100))
>
>
> The output plots are different from what I get if I use 1 processor.

This example uses a simple decomposition, not what you use above.

Note that this example was contributed and we do not endorse it as
recommended practice.  If your code is already set up very much like
this, it may be worth looking at, but don't write new code in this way
because it is algorithmically constraining.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140802/0c91e2e8/attachment-0001.pgp>


More information about the petsc-users mailing list