[petsc-dev] Preserving floating point exception flags

Barry Smith bsmith at mcs.anl.gov
Mon May 3 16:18:29 CDT 2010


On May 3, 2010, at 12:18 PM, Jed Brown wrote:

> I
>
> In lieu of that, you can always pass -fp_trap and run in a  
> debugger.  It
> will break when the exception occurs and you can check the flags with
> fetestexcept(FE_ALL_EXCEPT), see fenv.h for the enum values (probably
> /usr/include/bits/fenv.h).

    Jed, could you please add this very useful information to the  
manual page for PetscSetFPTrap()? (is that where it should go?).

    Thanks

     Barry

>
> Jed




More information about the petsc-dev mailing list