Operating System - HP-UX
1756715 Members
2715 Online
108852 Solutions
New Discussion юеВ

directive CDIR$ integer=64

 
Reggie Chang
Frequent Advisor

directive CDIR$ integer=64

Hello there,

I need to transfer a FORTRAN code from SGI
to HP-UX 10.20 running Fortran 90.

In the SGI code, directive "CDIR$ INTEGER=64"
is used. This is ignored by the f90 compiler.
Is there any way to have it in effect? (From
the online document, integer byte cannot be
set u.)

Best regards,

Reggie
3 REPLIES 3
Olav Baadsvik
Esteemed Contributor

Re: directive CDIR$ integer=64

Hi,

I do not quite know what the directive
"CDIR$ INTEGER=64" does, but check this
section in the man-page for f90:

+i8 Treat all integer constants, integer intrinsics,
and user variables declared as integer as 8-byte
values, rather then the current 4-byte default.


It could be what you are looking for.

Regards
Olav

fsfarimani
Occasional Visitor

Re: directive CDIR$ integer=64

As also have been hinted on this page just wrap the Cray compiler directive (CDIR$) :

 

!DEC$ IF DEFINED(CRAY_COMPILER)
CDIR$ INTEGER=64
!DEC$ ENDIF

 

 

and then compile with 

 

ifort.exe fileName.f /integer-size=64 /Qdiag-disable:10448

 

more info about the CRAY's CFT77 reference manual.

 

Steven Schweda
Honored Contributor

Re: directive CDIR$ integer=64

> As also have been hinted [...]

   It's a good thing that you got here when you did.  In another twenty
years, it's possible that no one still living would care.