<div class="gmail_quote">On Sun, Apr 22, 2012 at 15:44, Andrew Spott <span dir="ltr"><<a href="mailto:andrew.spott@gmail.com">andrew.spott@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How do I get line numbers to show up in the errors that petsc generates? Instead of getting line numbers I get line=0 or just no information.</blockquote></div><br><div>In your code or in PETSc code? Usually you just configure PETSc --with-debugging=1 (the default). In your code, you can use the CHKERRQ macro and define __FUNCT__ and use PetscFunctionBegin/PetscFunctionReturn(0). Most examples do this.</div>