Laetis
Laetis

Reputation: 1357

difference for fortran format between ifort and gnu fortran

I an currently working on a code that is ,as far as I know, compiling well with ifort. I tried to compile it with gfortran and I got the following error:

WRITE(100, '(8ES18.10E)') a
1 Error: Positive exponent width required in format string at (1)

I am puzzle by this format:8ES18.10E, what is supposed to mean the last E? Is it a ifort/gfortran incompatibility?

Thanks for advice

Upvotes: 1

Views: 332

Answers (1)

Laetis
Laetis

Reputation: 1357

ifort interprets WRITE(100, '(8ES18.10E)') as WRITE(100, '(8ES18.10E2)') ) at least in the example I found

Upvotes: 1

Related Questions