I have the following line of code…
write(6,201) i, TIME, DTIME, CorM, CorR, CorL, accL + CorL, fluxM, corM / solmass
Due to it’s length (and as an experiment in the use of continuation lines to confirm my understanding) I tried to spread this over two lines.
I have tried this…
write(6,201) i, TIME, DTIME, CorM, CorR, CorL, &
& accL + CorL, fluxM, corM / solmass
…with the ampersands…
- one character away from the first/last character
- at column 73 (first one) and column 6 (second one)
I have also tried this…
write(6,201) i, TIME, DTIME, CorM, CorR, CorL, &
accL + CorL, fluxM, corM / solmass
With the ampersand being
- at 73
- just after the final character
- at a distance from the final character (to keep things consistent and pretty)
No matter what I do I now get this error message…
283 | write(6,201) i, TIME, DTIME, CorM, CorR, CorL, &
| 1
Error: Expected expression in WRITE statement at (1)
I have just undertaken a fresh install of GNU Fortran, with the --version
being reported as 11.1.0
Anyone any ideas where I am going wrong?