[petsc-users] Errors in PETSc

Jed Brown jedbrown at mcs.anl.gov
Sun Apr 22 16:03:55 CDT 2012


On Sun, Apr 22, 2012 at 15:44, Andrew Spott <andrew.spott at gmail.com> wrote:

> 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.


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120422/90f4446b/attachment.htm>


More information about the petsc-users mailing list