Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!rice!sun-spots-request From: marty@puppsr.princeton.edu Newsgroups: comp.sys.sun Subject: Re: f77 floating point exceptions opn SS1 4.0.3 Keywords: Software Message-ID: <1990Sep18.203409.7906@rice.edu> Date: 18 Sep 90 23:49:20 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 21 Approved: Sun-Spots@rice.edu Originator: spots@titan.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 315, message 1 X-Refs: Original: v9n308 In article <1990Aug16.000008.7986@rice.edu>, preston@ra.src.umd.edu (James Preston) writes: |> We are using f77 on Sparcstations (OS4.0.3) and are quite often getting |> the message: |> Floating point errors ocurred... |> Inexact; Underflow; You have to look over your code carefully to find out whether you have a real problem. The compiler usually does the right thing (like exp(large neg. number) becomes zero but will raise flags). If the code is thoroughly debugged :-) it can be ignored. Try inserting the line idummy = ieee_handler('set','invalid',SIGFPE_ABORT) near the top of the program to make it crash where the error is occurring, and use dbx to examine the pieces... Good luck. Marty Ryba Princeton University marty@pulsar.princeton.edu