- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is there a setting for the Fortran Compiler in the Compaq Visual Fortran Studio that will pausea program (and point to the offending line) when a divide by zero is executed? I have set all my Exceptions to "stop always" as opposed to "stop if not handled" but my program divides by zero - resulting in a variable that shows up as NaN - and continues to execute until a much later point when it can't continue and points me to the Disassembly Window. I am having a very hard time tracking down the location of the first division by zero and any help would be greatly appreciated.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Project/Settings/Fortran/Floating Point/Exception handling -> change from 3 (default) to zero. Compiler switch is /fpe:0.
Jugoslav

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page