Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Throw Exception

tamieich
Beginner
1,539 Views
Hi!
at first, excuse me for my bad english!
if there is anybody that could help me, i need to know if is possible to throw exceptions in fortran 90 and, if it's possible, how i can do it. Thank you!
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,539 Views
The Fortran language does not have the idea of throwing exceptions. (Fortran 2003 has features for handling floating point exceptions, but that is all.)

If you want to signal an exception in Fortran code you will have to use a non-standard method to do so. Intel Fortran provides the RAISEQQ library routine to do this. You must add "USE IFPORT" to your program to make this available. Please see the Intel Fortran Libraries Reference manual for more information.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
1,539 Views
You can also USE DFWIN and RaiseException API, which gives you more power. (E.g. submit exception arguments).

Jugoslav
0 Kudos
tamieich
Beginner
1,539 Views
thank you very much guys. You are Great!!
0 Kudos
Reply