26 integer idummy(3),three,kflag,i
28 real*8 c(3,3),al(3),
v1,v2,v3,bb,cc,cm,cn,tt,pi
38 v1=c(1,1)+c(2,2)+c(3,3)
39 v2=c(2,2)*c(3,3)+c(1,1)*c(3,3)+c(1,1)*c(2,2)-
40 & (c(2,3)*c(2,3)+c(1,3)*c(1,3)+c(1,2)*c(1,2))
41 v3=c(1,1)*(c(2,2)*c(3,3)-c(2,3)*c(2,3))
42 & -c(1,2)*(c(1,2)*c(3,3)-c(1,3)*c(2,3))
43 & +c(1,3)*(c(1,2)*c(2,3)-c(1,3)*c(2,2))
46 cc=-2.d0*
v1**3/27.d0+
v1*v2/3.d0-v3
47 if(dabs(bb).le.1.d-10)
then 48 if(dabs(cc).gt.1.d-10)
then 49 al(1)=-cc**(1.d0/3.d0)
56 cm=2.d0*dsqrt(-bb/3.d0)
58 if(dabs(cn).gt.1.d0)
then 65 tt=datan2(dsqrt(1.d0-cn*cn),cn)/3.d0
67 al(2)=cm*dcos(tt+2.d0*pi/3.d0)
68 al(3)=cm*dcos(tt+4.d0*pi/3.d0)
76 call dsort(al,idummy,three,kflag)
static double * v1
Definition: mafillsmmain_se.c:40
subroutine dsort(dx, iy, n, kflag)
Definition: dsort.f:6