dewset(3f) - [M_odepack] Set error weight vector.
subroutine dewset(N,Itol,Rtol,Atol,Ycur,Ewt)
integer,intent(in) :: N
integer,intent(in) :: Itol
real(kind=dp),intent(in) :: Rtol(*)
real(kind=dp),intent(in) :: Atol(*)
real(kind=dp),intent(in) :: Ycur(N)
real(kind=dp),intent(out) :: Ewt(N)
This subroutine sets the error weight vector EWT according to
EWT(i) = RTOL(i)*ABS(YCUR(i)) + ATOL(i), i = 1,...,N,
with the subscript on RTOL and/or ATOL possibly replaced by 1 above, depending on the value of ITOL.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | N | |||
integer, | intent(in) | :: | Itol | |||
real(kind=dp), | intent(in) | :: | Rtol(*) | |||
real(kind=dp), | intent(in) | :: | Atol(*) | |||
real(kind=dp), | intent(in) | :: | Ycur(N) | |||
real(kind=dp), | intent(out) | :: | Ewt(N) |