[petsc-dev] What is wrong with CHKERRQ() after PetscInitialize()?

Barry Smith bsmith at mcs.anl.gov
Mon Sep 17 20:00:19 CDT 2012

   It has never been allowed. 

    If PetscInitialize() fails and returns a nonzero error value then we cannot know how far PetscInitialize() has gotten and hence if PetscError() will run correctly.

    Similarly CHKERRQ() should not follow PetscFinalize()

    Should we have another macro for those cases?


On Sep 17, 2012, at 7:56 PM, Matthew Knepley <knepley at gmail.com> wrote:

> http://petsc.cs.iit.edu/petsc/petsc-dev/rev/b74991ae4579
>    Matt
> -- 
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> -- Norbert Wiener

More information about the petsc-dev mailing list