Dear all
I am facing a problem while using pgf90 compiler…
when I am reading a file a matrix of 10x10 by the following command lines the compiler used to give the error while reading…
***** Command lines ********
open (unit=15, file=‘dem.asc’, status=‘old’)
read (15, *) ((G(i,j)%Id, j=1,10), i=1,10)
close(15)
***** Compiler error ***********
PGFIO-F-225/list-directed read/unit=15/lexical error-- unknown token type.
File name = /home/rkumar/HBV_v3/Neckar/input/morph/1000/dem.asc formatted, sequential access record = 7
In source file ReadData.f90, at line number 225
But when I am not using nested loop statements than it is working well
i.e,
open (unit=15, file=‘dem.asc’, status=‘old’)
do i=1,10
read (15, *) (G(i,j)%Id, j=1,10)
end do
close(15)
Please let me know if it a problem of nested loop or something else and also how can I use nested loop statement…