Automatic Arrays

Examples

Determine size of local array, at run-time, from actual argument :
    SUBROUTINE image_process(pixel_map)

        INTEGER, DIMENSION(:.:) :: pixel_map    
                ! ...assumed shape;

        INTEGER, DIMENSION(SIZE(pixel_map,1),SIZE(pixel_map,2)) :: work_space
                ! ...automatic;

        ...
        ...

Use arguments to determine size of local array at run-time :
    SUBROUTINE process_thing(sparse, M, N)
        INTEGER, DIMENSION(:.:) :: sparse
        INTEGER, DIMENSION(M,N) :: work
        ...
        ...


...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_course_fortran_90/_reml_grp/index.reml
On: 10/2/2003 at 10:33:52
Options: reml2 -i noindex -l long -o html -p multiple