Fortran tipps

g95 - truncate line problem

in contrast to the ifc compiler, the g95 compiler complains when the lines are too long. therefore, the lines must be divided correctly. emacs does this automatically in f90-mode, otherwise divide the lines with


runtime error: Constant string in input format

while the ifc compiler also allows constants in the input format, the g95 compiler does not. there, this must be labeled via generic chars. as an example:

ifc: 914 FORMAT(200("(",ES9.2,",",ES9.2,')',1x))
g95: 914 FORMAT(200(1x,ES9.2,1x,ES9.2,1x,1x))

In the output, both compilers allow constants in the format!