1 SUBROUTINE ewset (N, ITOL, RTOL, ATOL, YCUR, EWT)
11 DOUBLE PRECISION RTOL, ATOL, YCUR, EWT
12 dimension rtol(*), atol(*), ycur(n), ewt(n)
14 GO TO (10, 20, 30, 40), itol
17 15 ewt(i) = rtol(1)*dabs(ycur(i)) + atol(1)
21 25 ewt(i) = rtol(1)*dabs(ycur(i)) + atol(i)
25 35 ewt(i) = rtol(i)*dabs(ycur(i)) + atol(1)
29 45 ewt(i) = rtol(i)*dabs(ycur(i)) + atol(i)
subroutine ewset(N, ITOL, RTOL, ATOL, YCUR, EWT)