- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just ran across this in converting some software from CVF to IVF. Is there an equivalent in IVF?
INT_PTR_KIND is an intrinsic function extension in CVF.
Linda
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's an extension in CVF, and is exactly the same in IVF. You typically use it as follows:
Code:
INTEGER(INT_PTR_KIND()) :: P
It declares P as an integer that is the correct kind (size) to hold an address (integer pointer). It's useful when you're using the integer pointer (aka "Cray Pointer") extension, especially if you're declaring a derived type/structure with a component that is supposed to hold an address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IVF didn't seem to like it.
gives me error 0560-S Function not intrinsic function.
I'm using default settings, for the most part. Would I need a special setting to use?
Linda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind. I managed to be in the Lahey compiler instead of Intel.
Linda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well! There's just no accounting for taste! :-)
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