I am trying to compare two separate data list contained in ASCII files. I have written a do loop to read the data into arrays.
DO i=1,999
READ (11,*) x, y, z
READ (12,*) xx, yy, zz
ENDDO
The problem I am having is when I make a IF statement to compare the data it will only compare row1 of file one to row2 of file2 and so on. I want to be able to compare row1 of file1 to all rows in file2 and so on to compare ALL data to each other.
Any tips would be great!
Thank you
Charlie
DO i=1,999
READ (11,*) x, y, z
READ (12,*) xx, yy, zz
ENDDO
The problem I am having is when I make a IF statement to compare the data it will only compare row1 of file one to row2 of file2 and so on. I want to be able to compare row1 of file1 to all rows in file2 and so on to compare ALL data to each other.
Any tips would be great!
Thank you
Charlie