rajabadsha
Programmer
I am trying to figure out the following code:
do iw=1,nw
irecl = irecl + 1
write(10,rec=irecl) (cplot(iw,ip),ip=1,np)
enddo
The output is written to a file called contour.dat. cplot is initiated to an array of 1000 * 1000. As a new programmer in Fortran I did not really understand the format of the write statement in the above loop. What does (cplot(iw,ip),ip=1,np) means?
Thanks
do iw=1,nw
irecl = irecl + 1
write(10,rec=irecl) (cplot(iw,ip),ip=1,np)
enddo
The output is written to a file called contour.dat. cplot is initiated to an array of 1000 * 1000. As a new programmer in Fortran I did not really understand the format of the write statement in the above loop. What does (cplot(iw,ip),ip=1,np) means?
Thanks