[petsc-users] Mat/Vec with empty ranks

Matthew Knepley knepley at gmail.com
Mon Oct 2 08:04:35 CDT 2017


On Mon, Oct 2, 2017 at 6:21 AM, Florian Lindner <mailinglists at xgm.de> wrote:

> 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.
>

There are a few problems with this program. I am attaching a cleaned up
version. However, convergence still differs starting
at iteration 2. It appears that LSQR has a problem with this system, or we
have a bug that I cannot see.

  Thanks,

    Matt


> Thanks,
> Florian
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171002/9a8a20fc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qr.c
Type: text/x-csrc
Size: 4065 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171002/9a8a20fc/attachment-0001.bin>


More information about the petsc-users mailing list