51 |
integer ifail !=-1 if singular matrix error, =0 if not singular |
integer ifail !=-1 if singular matrix error, =0 if not singular |
52 |
integer jfail !=0 if determinant can be evaluated, =-1 if determinat is probably too small, =+1 if too large |
integer jfail !=0 if determinant can be evaluated, =-1 if determinat is probably too small, =+1 if too large |
53 |
|
|
54 |
parameter (big=1.e4) !just a number greater than C(npoints,3) |
parameter (ibig=1.e4) !just a number greater than C(npoints,3) |
55 |
double precision xxc(big),zzc(big),rrr(big) !centres and radii to be averaged |
double precision xxc(ibig),zzc(ibig),rrr(ibig) !centres and radii to be averaged |
56 |
|
|
57 |
double precision tmp1,tmp2,tmp(npoints) !temp variables |
double precision tmp1,tmp2,tmp(npoints) !temp variables |
58 |
|
|
174 |
call DFACT(3,d,3,ir,ifail,detd,jfail) |
call DFACT(3,d,3,ir,ifail,detd,jfail) |
175 |
if(ifail.eq.-1) then |
if(ifail.eq.-1) then |
176 |
if(DEBUG)then |
if(DEBUG)then |
177 |
print*,'tricircle: ERROR: singular matrix D:' |
print*,'tricircle: ERROR: singular matrix D:' |
178 |
do i=1,3 |
do i=1,3 |
179 |
print*,(d(i,j),j=1,3) |
print*,(d(i,j),j=1,3) |
180 |
enddo |
enddo |
181 |
endif |
endif |
182 |
eflag=1 |
eflag=1 |
183 |
endif |
endif |
184 |
if(jfail.eq.-1) then |
if(jfail.eq.-1) then |
185 |
if(DEBUG)then |
if(DEBUG)then |
186 |
print* |
print* |
187 |
$ ,'tricircle: ERROR: matrix D: determinant too small?' |
$ ,'tricircle: ERROR: matrix D: determinant too small?' |
188 |
do i=1,3 |
do i=1,3 |
189 |
print*,(d(i,j),j=1,3) |
print*,(d(i,j),j=1,3) |
190 |
enddo |
enddo |
191 |
endif |
endif |
192 |
eflag=1 |
eflag=1 |
193 |
elseif(jfail.eq.1) then |
elseif(jfail.eq.1) then |
212 |
enddo |
enddo |
213 |
endif |
endif |
214 |
eflag=1 |
eflag=1 |
215 |
endif |
endif |
216 |
if(jfail.eq.-1) then |
if(jfail.eq.-1) then |
217 |
if(DEBUG)then |
if(DEBUG)then |
218 |
print* |
print* |