Re: [petsc-users] Write Non-Zero Values of MPI Matrix on an MPI Vector

2018-02-13 Thread Jed Brown
Ali Berk Kahraman writes: > OK, here is the thing. I have a 2D cartesian regular grid. I am working > on wavelet method collocation method, which creates an irregular > adaptive grid by turning grid points on an off on the previously > mentioned cartesian grid. I

Re: [petsc-users] Write Non-Zero Values of MPI Matrix on an MPI Vector

2018-02-13 Thread Matthew Knepley
On Tue, Feb 13, 2018 at 10:12 AM, Ali Berk Kahraman < aliberkkahra...@yahoo.com> wrote: > OK, here is the thing. I have a 2D cartesian regular grid. I am working on > wavelet method collocation method, which creates an irregular adaptive grid > by turning grid points on an off on the previously

Re: [petsc-users] Write Non-Zero Values of MPI Matrix on an MPI Vector

2018-02-13 Thread Ali Berk Kahraman
OK, here is the thing. I have a 2D cartesian regular grid. I am working on wavelet method collocation method, which creates an irregular adaptive grid by turning grid points on an off on the previously mentioned cartesian grid. I store the grid and the values as sparse Mat objects, where each

Re: [petsc-users] Write Non-Zero Values of MPI Matrix on an MPI Vector

2018-02-13 Thread Jed Brown
Ali Kahraman writes: > > Dear All, > > My problem definition is as follows, > > I  have an MPI matrix with a random sparsity pattern i.e. I do not know how > many nonzeros there are on any row unless I call MatGetRow to learn it. There > are possibly unequal