Re: Need some HELP!! In a pre-version fortran codes



On 23 juil, 15:39, Tim Prince <timothypri...@xxxxxxxxxxxxx> wrote:
neallee...@xxxxxxxxx wrote:
Thank you, FJ, glen, Tim Prince.

i think that is the answer, well, i know this is a Cray pointer/blank
common technique,

but how can i use some compiler which supports this feature, and i
could understand these codes step by step??

You can get pre-built copies of gfortran at gfortran wiki, or build it
(using gcc) from the gnu source code mirrors.
You already found that Intel (and other commercial compilers) support
Cray pointers, one way or another. Ifort supports Cray pointer by
default, but turns off loop optimizations unless you set the
safe-cray-ptr option.
I've used Fortran since before Cray pointers were invented. Even now
that they are obsolete, I keep running into ways of using them which I
hadn't seen before. They aren't well suited to easy understanding. The
presence of the safe-cray-ptr option in one compiler should tell you
that they aren't always used correctly, and the compiler can't diagnose
problems.


I don't understand why you are speaking about Cray pointer. The use of
a blank common has nothing to do with a Cray pointer. And the
technique applied here remains valid with any modern Fortran compiler
(g95, ifort, lf93, cvf ...) under a single condition : deactivate any
option checking out of bounds !


.



Relevant Pages

  • Re: Allocation interoperability (Fortran/C)
    ... intrinsic module of Fortran 2003 and its C_F_POINTER procedure. ... Otherwise, no, unless the compiler provides an extension (such as the ... the "Cray Pointer" extension that almost everyone has. ...
    (comp.lang.fortran)
  • Re: Cray pointer type in Suns f95
    ... Sun's Fortran compiler to treat Cray pointer and the ... compatible with integers which I had used in the subroutine interfaces. ... You can convert pointers to integers using INT. ...
    (comp.lang.fortran)
  • Re: Solaris f90 and Cray pointers question
    ... Using version 12.0 revision 2007.05.03 of Solaris Fortran on a 64 bit ... The type of actual argument, "Cray pointer", does not match ... Same code compiles fine with Intel 9.1 compiler ...
    (comp.lang.fortran)
  • Solaris f90 and Cray pointers question
    ... I have a routine that defines a Cray pointer as follows: ... interger:: junk ... The type of actual argument, "Cray pointer", does not match ... Same code compiles fine with Intel 9.1 compiler ...
    (comp.lang.fortran)