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

Starting Array Counter from 'ZERO' from .NET environment

ftakh
Beginner
433 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
433 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
433 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
433 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