View previous topic :: View next topic |
Author |
Message |
acw
Joined: 04 Nov 2005 Posts: 165 Location: Darkest Devon
|
Posted: Wed Mar 08, 2006 4:39 am Post subject: Size of a user-define type (structure) at compile time |
|
|
Is there any way of finding the size of a user defined type at compile time ? Something equivalent to sizeof() is c/c++. I'm currently doing it manually, or at run time by finding the different between the location of adjacent elements in an array.
Cheers,
Alan |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Wed Mar 08, 2006 6:11 am Post subject: Size of a user-define type (structure) at compile time |
|
|
TYPE(mytype)::t1
INQUIRE(IOLENGTH=ilen) t1
PRINT*, ilen |
|
Back to top |
|
|
|