Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Throw Exception

tamieich
Beginner
1,535 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,535 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,535 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,535 Views
thank you very much guys. You are Great!!
0 Kudos
Reply