There is no problem with the data file as far as I can see. What puzzles me is that the number of rows that are READ during the loop changes accordingly to the information that the print statement within the loop provides. The less information I print the more rows are read! If there was an...
Dear Francois,
many thanks for your reply and pardon me for not explaining the problem well. The loop I provided above simply terminates without completion and the code stops running.
The answers to your questions below:
Are the arrays a, irow and ico dimensioned at the right size (at least...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.