<div dir="auto">Dolfin pushes its own error handler, to pretty print errors from petsc, leaving the user clueless about what happened. To get the stack trace, you can also call PetscPopErrorHandler before you call the costructor of the krylov solver<div dir="auto"><br></div><div dir="auto"><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscPopErrorHandler.html">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscPopErrorHandler.html</a></div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno Ven 8 Feb 2019, 20:49 Jed Brown via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you run in a debugger to get a stack trace? I believe Dolfin<br>
swallows the stack trace to obstruct efforts to remove bugs; probably<br>
paid off by the bug lobby.<br>
<br>
aditya kumar via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank" rel="noreferrer">petsc-users@mcs.anl.gov</a>> writes:<br>
<br>
> Hello,<br>
><br>
> I am using PETSc with FEniCS project libraries to solve a nonlinear<br>
> problem. I am using PETSc Krylov solver with the following configuration<br>
><br>
> pc = PETScPreconditioner("petsc_amg")<br>
> PETScOptions.set("mg_levels_ksp_type", "chebyshev")<br>
> PETScOptions.set("mg_levels_pc_type", "jacobi")<br>
> PETScOptions.set("mg_levels_esteig_ksp_type", "cg")<br>
> PETScOptions.set("mg_levels_ksp_chebyshev_esteig_steps", 50) solver_u =<br>
> PETScKrylovSolver("cg", pc)<br>
><br>
> I am encountering this error sometimes during the solution of the linear<br>
> system:<br>
> Error: Unable to successfully call PETSc function 'KSPSolve'. *** Reason:<br>
> PETSc error code is: 77 (Petsc has generated inconsistent data). *** Where:<br>
> This error was encountered inside<br>
> /tmp/dolfin/dolfin/la/PETScKrylovSolver.cpp.<br>
><br>
> *** Process: 130<br>
><br>
> Can anybody help me in understanding the possible reasons for this error<br>
> code? Or refer me to any available documentation? It will be really<br>
> helpful.<br>
><br>
> Also, I will like to know if there is a way to prevent the code from<br>
> stopping due to such PETSc errors, so that I can tweak some parameters to<br>
> hopefully make it progress.<br>
><br>
> Thanks and Regards,<br>
> Aditya<br>
</blockquote></div>