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

Pointing to a section of an array

David_DiLaura1
New Contributor I
455 Views

A pointer targeted to an entire array picks up the lower and upper bounds of the target array, but a pointer targeted to a piece of an array always has a lower bound of 1. Any one have trick or work around?

My target array is dimensioned as: A(0:360, -360:360, 20). That is, I have20 pages of (0:360,-360:360). I would like to point toan individualpage and still use subscripts in the range (0:360,-360:360) and not (1:361, 1:721).

David

0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
455 Views
That was discussed recently here, as well as in comp.lang.fortran. On the latter page, you will also find a cludge trick how to do it in F95 (see post #8 by Kurt).
0 Kudos
Reply