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.

Maximum variable size

inkant
Novice
513 Views
Hello everyone,

I have a small question. Is there an upper cap variable size in fortran.

I have a variable which is approximately 2Mb (DOUBLE PRECISION rxnrate(16, 252, 62)) and is paased between the subroutines. Is it possible that this variable gets truncated while passing.

Best Regards,
Inkant
0 Kudos
1 Reply
Steven_L_Intel1
Employee
513 Views
There's no Fortran upper limit - any limit is imposed by the operating system. Such limits are based on the address space size and are generally 2GB (not MB!) unless you are on an x64 platform and use -mcmodel medium.

When you pass an array, assuming you just give the array name, it passes the address. I would suggest that you look for coding errors such as mismatched bounds declarations.
0 Kudos
Reply