- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following two statements does *not* produce the same result:
[fortran]
PRINT *, KIND( TRANSFER(real_num,equal_size_int) )
PRINT *, KIND( equal_size_int )
[/fortran]
where equal_size_int is a PARAMETER accessed through a MODULE.
This must be an error...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you perhaps mean to write:
TRANSFER(real_num,0_equal_size_int)
? What you have is just an integer whose value is equal_size_int with default kind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
equal_size_int is the name of the integer parameter, it can have any value and is not intended as a kind parameter (which would have to have the values 1, 2, 4 or 8 in IFORT)
But regardless of that, shouldn't the two statements produce the same result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please show me a complete source that demonstrates the problem. I can't see it from those two lines.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page