Modern Fortran: Output format without label -
i looking way specify output format without using label.
to understand mean, label:
write(*,1001) icount, x, y 1001 format (i5,f5.2,e12.3)
without label should put format (i5,f5.2,e12.3)
somewhere in write statement, write(*,format(i5,f5.2,e12.3)) icount, x, y
i think saw somewhere unfortunately cannot find again. if exists feature of newer fortran version. maybe fortran 90? maybe fortran 2008?
try
write(*,'(i5,f5.2,e12.3)') icount, x, y
Comments
Post a Comment