Re: [petsc-users] Incoherent data entries in array from a dense sub matrix

2025-02-08 Thread medane.tchako...@univ-fcomte.fr
Dear petsc team, Thank you for all your answers. I really appreciate. Best regards, Medane > On 7 Feb 2025, at 15:22, Matthew Knepley wrote: > > On Fri, Feb 7, 2025 at 8:20 AM medane.tchako...@univ-fcomte.fr > <mailto:medane.tchako...@univ-fcomte.fr> <mailto:

Re: [petsc-users] Incoherent data entries in array from a dense sub matrix

2025-02-07 Thread medane.tchako...@univ-fcomte.fr
this is the excepted behavior and I’am missing something. Thanks, Medane > On 7 Feb 2025, at 11:34, Pierre Jolivet wrote: > > > >> On 7 Feb 2025, at 11:05 AM, medane.tchako...@univ-fcomte.fr wrote: >> >> >> Dear all, >> >> I have been exp

[petsc-users] Incoherent data entries in array from a dense sub matrix

2025-02-07 Thread medane.tchako...@univ-fcomte.fr
Dear all, I have been experiencing incoherent data entries from this code below, when printing the array. Maybe I’am doing something wrong. PetscInt nlines = 8; // lines PetscInt ncols = 4; // columns PetscMPIInt rank; PetscMPIInt size; // Initialize P

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

2025-01-28 Thread medane.tchako...@univ-fcomte.fr
e+00 > 0.e+00 0.e+00 0.e+00 > 0.e+00 0.0000e+00 0.e+00 > > > > > >> On 27 Jan 2025, at 6:53 PM, medane.tchako...@univ-fcomte.fr wrote: >> &

[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