Clive Page wrote on 13-MAY-2004 09:27:33.96
>On Wed, 12 May 2004, John Blair-Fish wrote:
>
>> Initial values are given to two variables
>> graphics_unit and scale in the MODULE graph_ps.
>> These values are 20 and 400. These are printed in the main
>> program to default output. With Salford ftn95 4.5 the values are
>> printed as 1137180672 and 0.000000E+00. Sun Fortran prints
>> them correctly.
>
>The GNU g95 compiler nearing completion (www.g95.org) also gets the right
>result. It looks like a bug to be reported - and I'm sure that Salford
>Software would like to know about it.
The xlf90 compiler on MacOSX has a simmilar problem. Here it depends on how
you link the routines. If you link from .o files everything is OK. If you put
the module in a .a file and leave the main program in a .o file and the main
program only uses the initialized values and does not need the module for
subroutines, the main program does not initialize the parameters.
Since this is a show-stopper to port my programs to MacOSX, I reported this
several month ago and had some contact with the people from IBM, but up to
now they did not solve it.
Jouk Jansen
Bush : All votes are equal but some votes are more equal than others.
>------------------------------------------------------------------------------<
Jouk Jansen
[log in to unmask]
Technische Universiteit Delft tttttttttt uu uu ddddddd
Nationaal centrum voor HREM tttttttttt uu uu dd dd
Rotterdamseweg 137 tt uu uu dd dd
2628 AL Delft tt uu uu dd dd
Nederland tt uu uu dd dd
tel. 31-15-2782272 tt uuuuuuu ddddddd
>------------------------------------------------------------------------------<
|