[petsc-users] erratic bug with nested PETSc and SLEPc

Marco Zocca zocca.marco at gmail.com
Mon Jan 25 04:34:00 CST 2016

Dear all,

I have a simple code with a matrix filling, assembly and output to stdout.
This in turn is wrapped within a SLEPc bracket, and that in turn in a
PETSc bracket, both called with default options

I run this on my laptop, MPI comm size == 1.

Issue: _sometimes_ the above crashes upon exit from the SLEPc bracket
(i.e. after printing out the matrix), with an error code > 8000 . I
haven't found this documented anywhere.
It's funny because this doesn't happen with probability 1 and no
conditions change (running from a makefile).

Other times it simply works.

In general, when using both PETSc and SLEPc functionality, is it
enough to link to SLEPc alone? Does it take care of importing all of

Any hints re. this behaviour?

Thank you in advance and kind regards,


More information about the petsc-users mailing list