comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: idl system variable for overflow/underflow errors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: idl system variable for overflow/underflow errors [message #77468 is a reply to message #77467] Wed, 07 September 2011 08:20 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 9/7/11 9:06 AM, simona bellavista wrote:
> Hi all,
>
> I am trying to debug a program that give overflow errors and I get a
> printout that says "Program caused arithmetic error: Floating
> overflow". I would like to know if there is a system variable that
> registers that an overflow has happened, something like !overflow = 1
> if an overflow has occurred, otherwise zero.
>
> Thanks a lot

Look at the CHECK_MATH routine. You can call it to find what types of
math errors have happened since the last time you called it.

Also, there is a system variable, !EXCEPT, that lets you specify the
level of detail in your overflow error message. Robin Wilson recently
had a blog post about it:

http://blog.rtwilson.com/get-more-detailed-messages-for-math s-errors-in-idl/

Note that CHECK_MATH and !EXCEPT interact with each other as described
in the CHECK_MATH documentation.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl system variable for overflow/underflow errors
Next Topic: Cool animated map. Not IDL per se. But cool!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 09:51:24 PDT 2025

Total time taken to generate the page: 1.44035 seconds