Re: [petsc-users] Create MATSEQAIJ from MATMPIAIJ

2020-06-22 Thread Eda Oktay
Oh okay, I misunderstood before. I will try that. Thanks! Matthew Knepley , 22 Haz 2020 Pzt, 19:10 tarihinde şunu yazdı: > > On Mon, Jun 22, 2020 at 11:39 AM Eda Oktay wrote: >> >> Matthew Knepley , 22 Haz 2020 Pzt, 14:43 tarihinde >> şunu yazdı: >> > >> > On Mon, Jun 22, 2020 at 7:14 AM Eda

Re: [petsc-users] Create MATSEQAIJ from MATMPIAIJ

2020-06-22 Thread Matthew Knepley
On Mon, Jun 22, 2020 at 11:39 AM Eda Oktay wrote: > Matthew Knepley , 22 Haz 2020 Pzt, 14:43 tarihinde > şunu yazdı: > > > > On Mon, Jun 22, 2020 at 7:14 AM Eda Oktay wrote: > >> > >> Hello everyone, > >> > >> I am trying to find elements in off diagonal blocks of a parallel > >> sparse matrix.

Re: [petsc-users] Create MATSEQAIJ from MATMPIAIJ

2020-06-22 Thread Eda Oktay
Matthew Knepley , 22 Haz 2020 Pzt, 14:43 tarihinde şunu yazdı: > > On Mon, Jun 22, 2020 at 7:14 AM Eda Oktay wrote: >> >> Hello everyone, >> >> I am trying to find elements in off diagonal blocks of a parallel >> sparse matrix. That is why, I want to use MatGetDiagonalBlock and from >> the matrix

Re: [petsc-users] Create MATSEQAIJ from MATMPIAIJ

2020-06-22 Thread Junchao Zhang
The resulting matrix is dependent on the number of processes you use (e.g., if you run with only one process, you will get a zero matrix). Think it over if this is really what you want. --Junchao Zhang On Mon, Jun 22, 2020 at 6:14 AM Eda Oktay wrote: > Hello everyone, > > I am trying to find

Re: [petsc-users] Create MATSEQAIJ from MATMPIAIJ

2020-06-22 Thread Matthew Knepley
On Mon, Jun 22, 2020 at 7:14 AM Eda Oktay wrote: > Hello everyone, > > I am trying to find elements in off diagonal blocks of a parallel > sparse matrix. That is why, I want to use MatGetDiagonalBlock and from > the matrix I obtain, I want to obtain off diagonal elements by > subtracting it from

[petsc-users] Create MATSEQAIJ from MATMPIAIJ

2020-06-22 Thread Eda Oktay
Hello everyone, I am trying to find elements in off diagonal blocks of a parallel sparse matrix. That is why, I want to use MatGetDiagonalBlock and from the matrix I obtain, I want to obtain off diagonal elements by subtracting it from my original matrix by using MatAXPY. However, since