Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

INT_PTR_KIND ?

lklawrie1
Beginner
2,157 Views
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
0 Kudos
4 Replies
Steven_L_Intel1
Employee
2,157 Views
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.
0 Kudos
lklawrie1
Beginner
2,157 Views
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
0 Kudos
lklawrie1
Beginner
2,157 Views
Never mind. I managed to be in the Lahey compiler instead of Intel.
Linda
0 Kudos
Steven_L_Intel1
Employee
2,157 Views
Well! There's just no accounting for taste! :-)
0 Kudos
Reply