Re: [petsc-users] PETSC Matrix debugging

2024-04-01 Thread Shatanawi, Sawsan Muhammad via petsc-users
] PETSC Matrix debugging [EXTERNAL EMAIL] Note, you can also run with the option -mat_view and it will print each matrix that gets assembled. Also in the debugger you can do call MatView(mat,0) On Apr 1, 2024, at 2:18 PM, Matthew Knepley wrote: This Message Is From an External Sender

Re: [petsc-users] PETSC Matrix debugging

2024-04-01 Thread Barry Smith
Note, you can also run with the option -mat_view and it will print each matrix that gets assembled. Also in the debugger you can do call MatView(mat,0) > On Apr 1, 2024, at 2:18 PM, Matthew Knepley wrote: > > This Message Is From an External Sender > This message came from outside your

Re: [petsc-users] PETSC Matrix debugging

2024-04-01 Thread Matthew Knepley
On Mon, Apr 1, 2024 at 1:57 PM Shatanawi, Sawsan Muhammad via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hello everyone, I hope this email finds you well. Is there a way we can > check how the matrix looks like after setting it. I have tried debugging it > with gdb- break points- and print

[petsc-users] PETSC Matrix debugging

2024-04-01 Thread Shatanawi, Sawsan Muhammad via petsc-users
Hello everyone, I hope this email finds you well. Is there a way we can check how the matrix looks like after setting it. I have tried debugging it with gdb- break points- and print statements, but it only gave me one value instead of a matrix. Thank you in advance for your time and