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

Allocate error 491: Array is already allocated

tburns671
Beginner
798 Views
My MPI application provides me the error everytime I run it. Through print statements, I can tell where the error is occuring. It occurrs when I call a fuction this is being passed a large number of arrays. The execution never makes it tothe strategically placedprint statement at the top of the troubled function.
Unfortunately, the error message does not tell me which array is causing the problem. Is there anyway to get the compiler/runtime to provide me the name of the troublesome array, without checking each one individually?
I am compiling with the following switches:
mpif90 -I ./ -w95 -O3 -align -unroll -pc80 -Dintel -Dmkl -CA -CB -CS -CV -d1 -r8 -g -c
Thanks,
-Tom
0 Kudos
3 Replies
Steven_L_Intel1
Employee
798 Views
The array name is not available to the run-time library. What version of the compiler are you using?
0 Kudos
tburns671
Beginner
798 Views

Thanks for the quick reply.

Version 7.1

In my case, I am using some legacy code that is passing about 30 arrays in theprocedure arg list, allocated all over the place.

Additionally, I think it is weird that the message stack never provides the name of the offending procedure, just the name of the procedure calling it.

-Tom

0 Kudos
Steven_L_Intel1
Employee
798 Views
You may want to try this in 8.0 with the -trace option.
0 Kudos
Reply