The problem is strange for me, I have fresh installed openSUSE 11.3 after that my fortran codes using gfortran compiler gives different output. The same codes gives correct values in windows but I use linux for programming.
When you say different, what do you mean. Binary different or functionally different? A Windows binary would be different then a Linux binary even if the code is the same.
Here first two column for Linux and last two for Windows. In openSUSE 11.2(I do not remember the gfortran version), the out put was same as in Wndows. Actually I get to know about that when I find that my results are too strange. When I did not find any reason, I checked it on windows.
But I can not use Windows, I use openSUSE. So it is really serious for me.
>
> Please help me to solve the problem, it is indeed important for me.
>
>
From looking at the output produced by some code which nobody knows compiled
with compiler switches you do not tell us, without telling us the
architecture of the gfortran (32 or 64 bit) and which target architecture
was choosen when compiling (and yes - this has an influence because it
affects the default precission in some cases in fortran) this is just wild
guessing.
If you use an unstable algorithm that can lead to some kind of random number
generator.
Do you link against a third party library?
Is the code itself bugfree?
Did you compile with debugging symbols and did you debug it?
You tell us about a black box without details and let us speculate about its
outcome.
without telling us the architecture of the gfortran (32 or 64 bit) and which target architecture was choosen when compiling (and yes - this has an influence because it affects the default precission in some cases in fortran) this is just wild
guessing.
The compiler installed is 64 bit and I used only 64 bit in openSUSE
If you use an unstable algorithm that can lead to some kind of random number
generator.
The code is not related to the random number generator, it is a application of simple physical formula.
Do you link against a third party library?
Is the code itself bugfree?
Did you compile with debugging symbols and did you debug it?
Not using any library, it is itself bugfree, I did not bug it.
It is a simple code working fine before in openSUSE 11.2.
How it is possible that the same code gives different results in different OS rather it is not related to random number generator.
without telling us the architecture of the gfortran (32 or 64 bit) and which target architecture was choosen when compiling (and yes - this has an influence because it affects the default precission in some cases in fortran) this is just wild
guessing.
The compiler installed is 64 bit and I used only 64 bit in openSUSE
If you use an unstable algorithm that can lead to some kind of random number
generator.
The code is not related to the random number generator, it is a application of simple physical formula.
Do you link against a third party library?
Is the code itself bugfree?
Did you compile with debugging symbols and did you debug it?
Not using any library, it is itself bugfree, I did not bug it.
It is a simple code working fine before in openSUSE 11.2.
How it is possible that the same code gives different results in different OS rather it is not related to random number generator.
Until now you refuse to answer the details asked for (only one detail at a
time but not the complete details which are needed).
Every programmer running into that kind of trouble (and yes things like that
can easily happen) would first compile his code with debug symbols and run a
debbuger of his/her choice on it to see what happens.
You do not even tell us anything what YOU did to check this, to do a root
cause analysis, before posting here in all kind of subforums with the same
missing information.