(j3.2006) Storage_Size

Bill Long longb
Thu Aug 21 16:44:12 EDT 2014

On Aug 20, 2014, at 6:31 PM, Van Snyder <van.snyder at jpl.nasa.gov> wrote:

> The result value description of Storage_Size ought to specify whether it
> includes the size of allocated components.  It ought to say it does not
> include the sizes of the targets of pointer components.

If you have an array variable of a type that has an allocatable component, the size of the component could be different for each array element.   I don?t see how you could have a reasonable result value from STORAGE_SIZE if you included the memory taken by the allocatable component. The spec for STORAGE_SIZE only makes sense if each array element has the same size.  The same argument applies to targets of pointer components. 


> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long                                                                       longb at cray.com
Fortran Technical Suport  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101

More information about the J3 mailing list