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.

ALLOCATE

ocean
Beginner
564 Views

Steve,

I have a question regarding the use of ALLOCATEwhen allocating memory for more than one array in IVF 9.1:

ALLOCATE( Array1, Array2, Array3)

How does the compiler deal with the above memory allocation? Does it allocate memory separately, by calling the operating system 3 times (once for each array), or does it make a single call requesting a single chunk of memory sufficient to cover the 3 arrays.

Your help is appreciated,

Thanks

Manny

0 Kudos
2 Replies
Steven_L_Intel1
Employee
564 Views
The allocations are done individually.
0 Kudos
ocean
Beginner
564 Views

Steve,

Thanks for your help.

Manny

0 Kudos
Reply