SIZEOF(user-defined-type)

Hi!

How can I get the size in bytes of an allocated user-defined variable?
The type can be very complex, and the thing may have variable number of elements, so manual addition of al the sizes of the components is not much fun. In other fortran dialects there is a SIZEOF function.
How is this done in pgf90?

Regards,

Arjan

Hi Arjan,

We’ve supported sizeof in f90 since our 7.1 compilers. What version of pgf90 are you using?

  • Brent

An old one, starting with 6… :-(