Re: [petsc-users] Preallocation of sequential matrix

2019-04-23 Thread Zhang, Junchao via petsc-users
The error message has [0]PETSC ERROR: New nonzero at (61,124) caused a malloc [0]PETSC ERROR: New nonzero at (124,186) caused a malloc You can check your code to see if you allocated spots for these nonzeros. --Junchao Zhang On Tue, Apr 23, 2019 at 8:57 PM Maahi Talukder via petsc-users mailto:

Re: [petsc-users] Preallocation of sequential matrix

2019-04-23 Thread Smith, Barry F. via petsc-users
For a very small problem that produces the error add code that prints the values of row() to the screen and run with the PETSc options -mat_new_nonzero_allocation_err false -mat_view This will allow the matrix assembly to proceed and display the matrix, you can then compare the values in