Hi,
I am trying to write a numeric code following Sloan's (Article A fast algorithm for constructing Delaunay triangulations in the plane
) article. He mentions that it is only necessary a set of N points (x,y) distributed in a plane.I elaborated the main program
program delau
!implicit real*8 (a-h,o-z)
parameter (n = 100)
INTEGER I,LIST(n+3),V(3,n+3),E(3,n+3),NUMTRI,BIN(n+3),NUMPTS
real X(n+3),Y(n+3)
rr = rand(78)
NUMPTS = n
do i =1,n
x(i) =rand()
y(i) =rand()
enddo
call deltri(numpts,n,x,y,list,bin,v,e,numtri)
end
the subroutines were copied and pasted from Sloan's article. But my code only triangulates 2 vertices and the EDG function displays
***ERROR IN FUNCTION EDG***
***ELEMENTS NOT ADJACENT***
Where am I going wrong??
best regards