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

fortt1: severe :

asim_sajjan
Beginner
485 Views

Hye
When I am running a programme (source file with data files are attched) it gave an error message like bellow:

fortt1: severe <408>: fort: <2>: Subsricpt #2 of the array Q2 has value 2 which is greater than the upper bound of 1.

But the programme can be run without any error when I used another compiler Microsoft Developer Studio Fortran compiler. Then I asked the persion who developed the programme and he asked me to follow the following instruction:

I would recommending compiling with all optimization options turned off, which should be in Project- Settings->Fortran- Optimizations. Select 'None' for the Optimization Levels and make sure all the boxes in the window are unchecked

In Compaq visual fortran I could not able to find the above mentioned option but I made Optimization-disable(/Od) in the project properties. But no result??
I will be happy if you help me how to solve the problem.

Regards
Asim

0 Kudos
1 Reply
TimP
Honored Contributor III
485 Views
As you didn't show the source code, my guess would be that you used the scheme of 30 years ago of declaring an array with size (1) to stand for (*). This is called assumed size, in terminology of last 20 years. This (1) was never standard; it would be preferable to correct the source code rather than to fish for options which allow it to pass, even though the usage was so common at one time that there were usually options to accommodate it.
0 Kudos
Reply