Equivalent of "sizeof"

Equivalent of "sizeof"

Is there an intrinsic FORTRAN 90/95 routine to calculate the byte size of a type? I want to estimate the memory requirement of my program, but have parameterized the declarations of the arrays using KIND.

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de Steve Lionel (Intel)

There is no standard intrinsic for this, but CVF supports SIZEOF for this purpose. The argument is an object of the type you want the size (in bytes) of.

The standard way to do this is an INQUIRE by IOLENGTH, but this is rather clumsy.

Steve

Steve

Inicie sesión para dejar un comentario.