I am indeed mixing ADD with INSERT. But when linking my code with
release version of Petsc I do not get this error, only when I link
with the debug version.

I wanted to make sure it is indeed wrong to do so, and if so, why the
error does not come up also in the release version.

Many thanks!

[0]PETSC ERROR: Object is in wrong state!
[0]PETSC ERROR: Cannot mix add values and insert values!

Reply via email to