Hi,
I've ported some Fortran code from Fortran PowerStation(4.0) to the Fortran 11(2003) compiler. In order to maintain double
and real
values between the old and new compiler, I changed properties>fortran>data>"Default Read Kind"
from 4 to 8. Now the problem is that the global variables are not maintaining data from one file to other.
Suppose I create a real*8
variable called abc
in one file as a global variable (COMMON/test/abc
). It is modified in one file and used in another file. When inspecting the value of the abc
variable in the second file, it is found not to contain the modified data. This happens only when I change "Default Real Kind"
to 8.
Are there any other options I need to modify from the properties window?
Please give a solution. Thanks in advance.