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

fortcom: Error:

desensitized
Beginner
2,441 Views
Hello, i am getting the following error when trying to complie my program. I have compiled it using the Lahey compiler with the default options and it works correctly. Here's the error message i get:

fortcom: Error: Ogive8.f90, line 183: The highest data type rank permitted is INTEGER(KIND=8).
ALLOCATE (id_point(0:nMax+1000,NGrains), STAT=STAT)
------------------------------------------^

the variable decloration is as follows:
INTEGER, ALLOCATABLE, DIMENSION(:,:) :: id_point

I've also tried compiling with the following options but with no success:
ifort Ogive8.f90 -o Ogive8 -integer_size 64

If anyone has any insight that would be appreciated.
James





0 Kudos
2 Replies
Ron_Green
Moderator
2,441 Views
Hmm, I need a little more context. How is NGrains declared, and what is it's value. Or better yet, on the "Options" tab you will see that you can upload a file. Is Ogive8.f90 stand-alone, or is it INCLUDing or USing half the known universe? If it's simple, upload it so we can have a look.

OR you can open an issue on premier.intel.com and upload the file there.

There's just not enough here to go on.
0 Kudos
desensitized
Beginner
2,441 Views
Thanks but I realized my mistake. The variables i used in defining the allocation was of the wrong data type (type=real).

Stupid mistake, The Lahey compiler is more forgiving and i never caught my mistake till now.

Thanks,
James
0 Kudos
Reply