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:
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