[petsc-users] MAT_NEW_NONZERO_LOCATIONS working?

Smith, Barry F. bsmith at mcs.anl.gov
Tue May 29 14:33:46 CDT 2018


  Please send complete error message; type of matrix used etc. Ideally code that demonstrates the problem.

   Barry


> On May 29, 2018, at 3:31 AM, Marius Buerkle <mbuerkle at web.de> wrote:
> 
> 
> Hi,
>  
> I tried to set MAT_NEW_NONZERO_LOCATIONS to false, as far as I understood MatSetValues should simply ignore  entries which would give rise to new nonzero values not creating a new entry and not cause an error, but I get  "[1]PETSC ERROR: Inserting a new nonzero at global row/column". Is this option supposed to work or not?



More information about the petsc-users mailing list