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.
29298 Discussions

ALLOCATE returns stat = -1 what is that?

twlaub
Beginner
507 Views

I've got a code that allocates a small array but the status return from allocate is giving me an error code of -1. Allocate is supposed to return a postive integer in the case of an error. Does anyone know what it means when allocate returns an error of -1?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
507 Views
I haven't seen that and can't spot in the code where that would happen. If you can provide a test case to Intel Premier Support, that would be helpful.
0 Kudos
twlaub
Beginner
507 Views

Steve,

It turns out that allocate was not returning a status of -1. Somehow our alloc_err variable was getting a value of -1 before hitting an if statement that only called allocate if the array was not already allocated. Since it was, alloc_err was not reset to zero. Thanks for your answer.

0 Kudos
Reply