I'm very new to Fortran, and I'm trying to read and understand a lengthy code written in Fortran. I want to know what these lines mean/do.
do i=1, nbom_e
temp = 0._SGL
do j=1, pan_nu
k = min(12, 2*nb_m)
write(string,"('(1X, ES13.6, 1X, I2, 1X, I9, ', I2, '(1X, ES13.6))')") k
read(10,string, iostat=io) temp(1,j), dum1, dum2, temp(2:1+k,j)
if (io/=0) write(*,*) 'Read failure', i, j, k
...
The code continues, but this is where it is difficult for me to understand - especially, the write(string...
part.
I understand this is a rather simple question, and a simple Google search gave me some information about Format Specifiers. But I cannot understand the part completely, and I cannot move forward to implement this in another language without understanding it.