28 INTEGER*4 LEVDBG(8),LUDBUG
29 COMMON /cmdebg/levdbg,ludbug
75 INTEGER*4 LBLCLM(*), ICLMA , ICLMB , ICLMC
79 real*8 e2clma(3), e2clmb(3), e2clmc(3)
80 real*8 enclma(3), enclmb(3), enclmc(3), emag
81 real*8 cang12 , cang13 , cang23 ,
pi , pio2
82 real*8 cang1 , cang2 , cang3
83 real*4 clma(3) , clmb(3) , clmc(3)
86 DATA pi/3.14159265359d0/,pio2/1.570796327/
94 e2clma(iaxis) = gciclm(iaxis,iclma)
95 e2clmb(iaxis) = gciclm(iaxis,iclmb)
96 e2clmc(iaxis) = gciclm(iaxis,iclmc)
98 cang12 =
dangle(e2clma,e2clmb, toler, angdif)
99 cang13 =
dangle(e2clma,e2clmc, toler, angdif)
100 cang23 =
dangle(e2clmb,e2clmc, toler, angdif)
102 cang1 = acos((cos(cang23) - cos(cang12)*cos(cang13))/
103 * (sin(cang12)*sin(cang13)))
104 cang2 = acos((cos(cang13) - cos(cang12)*cos(cang23))/
105 * (sin(cang12)*sin(cang23)))
106 cang3 = acos((cos(cang12) - cos(cang13)*cos(cang23))/
107 * (sin(cang13)*sin(cang23)))
110 coangl = dmin1(cang1,cang2,cang3)
113 IF (levdbg(7) .GE. 4)
THEN
114 WRITE (ludbug,4000) lblclm(iclma), lblclm(iclmb),
115 1 lblclm(iclmc), coangl
123 1000
FORMAT(
' *** ENTER COLINE ***')
124 2000
FORMAT(
' *** EXIT COLINE ***')
126 4000
FORMAT(
' COLINEAR ANGLE BETWEEN CLUMPS',3(2x,i6),
' = ',d12.6)