Hi All, I have difficulty in writing a mix of string and string arrays by FORTRAN, for example (the following two lines):
write (cout,1052) (cd(ii),ii=1+1,9),(cy(ib),ib=10,(inmt*2))
1052 format ('c=[c1',8(';c',a1),79(';c',a2),'];')
this piece of code is working, where cd(ii) and cy(ib) are string arrays.
I need to write variable number of the string arrays cells (cy(ib)) followed by a bracket, so I need to replace "79" in the format line with "(inmt*2)-9", because each case has a different number of cells to be written, when I do that, it is not anymore working.
Any ideas please?
Thanks,