[petsc-dev] Examples broken

Jose E. Roman jroman at dsic.upv.es
Wed Feb 15 09:28:06 CST 2012


With the latest petsc-dev I get the following error in many examples (e.g. src/ksp/ksp/examples/tutorials/ex12.c ):

[0]PETSC ERROR: Object is in wrong state!
[0]PETSC ERROR: Must call MatXXXSetPreallocation() or MatSetUp() on argument 1 "mat" before MatGetOwnershipRange()!

I guess the idea is to add MatSetUp() in all examples? Or will this error be removed eventually?

Jose





More information about the petsc-dev mailing list