Go to the documentation of this file. 1 SUBROUTINE kozsak2(IFLAG,GE,RE,AJ2,X,XN,XI,IER)
47 IMPLICIT DOUBLE PRECISION (a-h,o-z)
48 dimension x(6),xn(6),xi(6),dx(6),xtol(6)
50 DATA tpi/6.283185307179586d0/
51 DATA zero/0.d0/,rtol/1.d-6/
52 DATA xtol/1.d-5,1.d-8,2*1.d-7,2*1.d-5/
71 dowhile((.NOT.done).AND.(icount.LT.imax))
74 dx(i)=dmod(dx(i)+p3o2,tpi)-
pi
81 xdel = (x(i)-dx(i)-xi(i))
82 IF (i.GE.3) xdel = dmod(xdel+p3o2,tpi)-
pi
84 IF ((
abs(xdel).GT.xtol(i)).AND.(
abs(rdel).GT.rtol))
86 xn(i)=xi(i) + xdel*
fac
88 IF (xn(2).LT.zero) xn(2)=zero
95 print *,
'KOZSAK2: Mean elements converged in ',icount,
97 IF (icount.EQ.imax) ier = 1
106 xn(i)=dmod(xn(i)+tpi,tpi)
subroutine kozsak2(IFLAG, GE, RE, AJ2, X, XN, XI, IER)
subroutine delm(RE, GE, AJ2, X, DX)