[petsc-users] Mat/Vec with empty ranks

Florian Lindner mailinglists at xgm.de
Mon Oct 2 05:21:25 CDT 2017


Hello,

I have a matrix and vector that live on 4 ranks, but only rank 2 and 3 have values:

e.g.

Vec Object: 4 MPI processes
  type: mpi
Process [0]
Process [1]
1.1
2.5
3.
4.
Process [2]
5.
6.
7.
8.
Process [3]


Doing a simple LSQR solve does not converge. However, when the values are distributed equally, it converges within 3
iterations.

What can I do about that?

I have attached a simple program and creates the matrix and vector or loads them from a file.

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: in
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171002/c61f0389/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: in.info
Type: application/x-info
Size: 21 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171002/c61f0389/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matrixQ
Type: application/octet-stream
Size: 208 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171002/c61f0389/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: petscQR.cpp
Type: text/x-c++src
Size: 2603 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171002/c61f0389/attachment-0001.bin>


More information about the petsc-users mailing list