hallo all,
My code at first reads a input file.
It seemed that the last two parameters of the first row of the
input file had some problem.
I changed the code not to read these two parameters.
The numerical results from the code depend on how
I delete these two parameters from the input file.
Specifically if I delete them using the "left delete button" on the keyboard there is a result, while using the "right delete button"
another output is given. (actually I think it also depends
on the number of spaces I delete in the input file).
I suspected there was a not detected syntax problem, however gfortran finds none (using "-fbounds-check ").
Also compiling with ifort -C no errors are found,
however the numerical results of the codes are different
(significantly).
Actually an error was found by Ifort, I forgot to write the "::" in the declaration of a variable in a subroutine and to initialize it, however after correcting these errors the situation didn't change.
As a summary:
the code compiled with gfortran code works correctly only if I don't read
some parameters and I cancel them in the "correct way" from the
input file (exactly the same parameters are entered directly in the code
since they are not declared as "parameters" no problems should arise).
The ifort code gives the correct result even reading the "problematic"
parameters from the input.
Does anybody have an idea of what kind of error can lead to such unpredictable behavior?
I suspect that wrongly allocated memory could do it, but the compilers find nothing.
Why the gfortran does not detect the missing "::" ?
thank you
cheers,
Paolo
My code at first reads a input file.
It seemed that the last two parameters of the first row of the
input file had some problem.
I changed the code not to read these two parameters.
The numerical results from the code depend on how
I delete these two parameters from the input file.
Specifically if I delete them using the "left delete button" on the keyboard there is a result, while using the "right delete button"
another output is given. (actually I think it also depends
on the number of spaces I delete in the input file).
I suspected there was a not detected syntax problem, however gfortran finds none (using "-fbounds-check ").
Also compiling with ifort -C no errors are found,
however the numerical results of the codes are different
(significantly).
Actually an error was found by Ifort, I forgot to write the "::" in the declaration of a variable in a subroutine and to initialize it, however after correcting these errors the situation didn't change.
As a summary:
the code compiled with gfortran code works correctly only if I don't read
some parameters and I cancel them in the "correct way" from the
input file (exactly the same parameters are entered directly in the code
since they are not declared as "parameters" no problems should arise).
The ifort code gives the correct result even reading the "problematic"
parameters from the input.
Does anybody have an idea of what kind of error can lead to such unpredictable behavior?
I suspect that wrongly allocated memory could do it, but the compilers find nothing.
Why the gfortran does not detect the missing "::" ?
thank you
cheers,
Paolo