The intel fortran compiler works a bit different on Linux and Windows. When read/write a double precision number in its scientific notation without specifying the format, I got different result.
If I just use write(file_out, '(E20.12)')mynumber,
on Linux, the result is 0.000000000000e+00
on Windows the result is 0.000000000000e+000
Is there a way for change the default exponential digits? I mean still use write(file_out, '(E20.12)')mynumber, not change my code to write(file_out, '(E20.12E3)')mynumber.
I am compiling some of my old code on windows, this will save me a lot of trouble. I cannot find a answer. Please tell me how to do it. Thanks.