Dear all,
I am using gfortran and I am trying to read input from a large file (more than 2,100,000 lines...). I am using the following READ statement
DO i = 1, nnz
READ (111,*) a(i), irow(i), icol(i)
write(6,*) 'i=', i, 'a(i)=', a(i)
END DO
where 111 corresponds to the data file name. However, the loop exits after about 20,000 iterations. If I change the write statement within the loop to
write(6,*) 'i=', i
then the loop exits after 27,000 iterations. Any help would be much appreciated.
I am using gfortran and I am trying to read input from a large file (more than 2,100,000 lines...). I am using the following READ statement
DO i = 1, nnz
READ (111,*) a(i), irow(i), icol(i)
write(6,*) 'i=', i, 'a(i)=', a(i)
END DO
where 111 corresponds to the data file name. However, the loop exits after about 20,000 iterations. If I change the write statement within the loop to
write(6,*) 'i=', i
then the loop exits after 27,000 iterations. Any help would be much appreciated.