- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
The standard way to do this is an INQUIRE by IOLENGTH, but this is rather clumsy.
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page