i am a begginner in fortran and am trying to write a program that calulates the distance between two points, in order to identify duplicate co ordinates.
there are a list of co ordinate points and for each of these co ordinate points is a corresponding label, i.e. co-ordinat point 1 is node 1, co ordiante point 2 is node 2 etc (e.g. (0,0) is node 1, (0,3) is node 2, (0,6) is node 3 etc...)
Once the distance has been calculated the prgram then runs an IF statement with the criteria that if the distance is less that 10E-6 that it would flag this result, in an IFLAG vector of the nodal points.
does any on know how to do this? i would really appreciate it.
thanks
ps am willing to descirbe the problem in more detail if you need it.
there are a list of co ordinate points and for each of these co ordinate points is a corresponding label, i.e. co-ordinat point 1 is node 1, co ordiante point 2 is node 2 etc (e.g. (0,0) is node 1, (0,3) is node 2, (0,6) is node 3 etc...)
Once the distance has been calculated the prgram then runs an IF statement with the criteria that if the distance is less that 10E-6 that it would flag this result, in an IFLAG vector of the nodal points.
does any on know how to do this? i would really appreciate it.
thanks
ps am willing to descirbe the problem in more detail if you need it.