





![[BIG]](../icons/zoom18.gif)
![[Normal]](../icons/zoom14.gif)
![[small]](../icons/zoom10.gif)
Next: 3.5 Double precision real problems
Up: 3 Dynamic arrays
Prev: 3.3 Dynamic arrays management utilities
Index
Contents
The utility READRE returns an address, IATAB,
such that
M(IATAB) is the first element in the dynamic array.
There exist a priori two solutions to utilize this array:
- Pass M(IATAB) as a parameter to a subroutine inside which the
array is used in the classical way
(see MODUL1 in section 3.1).
- Use this array directly
by calculating the indices in the super-array
(see MODUL2 in section 3.1
and "double precision real problems"
in section 3.5).
The first solution is recommended even though it necessitates a call
to a sub-program, because:
- it avoids address computations and thus facilitates the writing of
the sub-program, especially in double precision;
- the sub-program is more readable and independent of dynamic addressing;
- if the effective length of the arrays appears in the declaration of the parameters
(instead of *), the system can detect possible overflows at execution time.






![[BIG]](../icons/zoom18.gif)
![[Normal]](../icons/zoom14.gif)
![[small]](../icons/zoom10.gif)
Next: 3.5 Double precision real problems
Up: 3 Dynamic arrays
Prev: 3.3 Dynamic arrays management utilities
Index
Contents