Re: [petsc-users] Copy dense matrix into half part of another dense matrix

2025-01-28 Thread medane.tchako...@univ-fcomte.fr
Re: Thank you Pierre, I really appreciate. I’am testing it right now to access the improvements. BR, Medane > On 27 Jan 2025, at 20:19, Pierre Jolivet wrote: > > Please always keep the list in copy. > The way you create A is not correct, I’ve attached a fixed code. > If you want to keep yo

Re: [petsc-users] Copy dense matrix into half part of another dense matrix

2025-01-27 Thread Pierre Jolivet
Please always keep the list in copy.The way you create A is not correct, I’ve attached a fixed code.If you want to keep your own distribution for A (and not the one associated to R_part), you’ll need to first call https://petsc.org/main/manualpages/Mat/MatCreateSubMatrix/ to redistribute A and then

Re: [petsc-users] Copy dense matrix into half part of another dense matrix

2025-01-27 Thread Matthew Knepley
On Mon, Jan 27, 2025 at 8:42 AM Pierre Jolivet wrote: > > On 27 Jan 2025, at 2:23 PM, medane.tchako...@univ-fcomte.fr wrote: > > > > Dear PETSc users, > > > > I hope this message finds you well. I don’t know If my question is > relevant, but I’am currently working with DENSE type matrix, and woul

Re: [petsc-users] Copy dense matrix into half part of another dense matrix

2025-01-27 Thread Pierre Jolivet
> On 27 Jan 2025, at 2:23 PM, medane.tchako...@univ-fcomte.fr wrote: > > Dear PETSc users, > > I hope this message finds you well. I don’t know If my question is relevant, > but I’am currently working with DENSE type matrix, and would like to copy one > matrix R_part [ n/2 x m] (resulted fro

[petsc-users] Copy dense matrix into half part of another dense matrix

2025-01-27 Thread medane.tchako...@univ-fcomte.fr
Dear PETSc users, I hope this message finds you well. I don’t know If my question is relevant, but I’am currently working with DENSE type matrix, and would like to copy one matrix R_part [ n/2 x m] (resulted from a MatMatMult operation) into another dense matrix R_full [n x m]. Both matrices