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

Starting Array Counter from 'ZERO' from .NET environment

ftakh
Beginner
637 Views
Dear All:
I am using Intel Fortran V.8 from within .Net. From this environment, is there a way to make all the array counter starting from 'zero' instead of 'one' (e.g. by setting some option checked from the .Net GUI)?
Thanks.
-Arun
0 Kudos
3 Replies
Steven_L_Intel1
Employee
637 Views
No. You have to declare the array with a zero lower bound. You're basically asking for a "pretend this isn't Fortran" switch!
0 Kudos
g_f_thomas
Beginner
637 Views
That's good: a "pretend this isn't Fortran" switch. Where's the 'row-major order switch'?

Interesting to note that in deference to its Fortran lineage, Matlab's arrays are 1-based and of column-major order.

Ciao,
Gerry T.
0 Kudos
Steven_L_Intel1
Employee
637 Views
Yeah, and the "run twenty percent slower" switch... :-)
That said, I am glad that we pushed the "creeping C" illness back under the covers by requiring a switch to recognize backslash as an escape introducer in string literals.
0 Kudos
Reply