subroutine lsoda (f, neq, y, t, tout, itol, rtol, atol, itask, 1 istate, iopt, rwork, lrw, iwork, liw, jac, jt) external f, jac integer neq, itol, itask, istate, iopt, lrw, iwork, liw, jt double precision y, t, tout, rtol, atol, rwork dimension neq(1), y(1), rtol(1), atol(1), rwork(lrw), iwork(liw) c----------------------------------------------------------------------- c this is the march 30, 1987 version of c lsoda.. livermore solver for ordinary differential equations, with c automatic method switching for stiff and nonstiff problems. c c this version is in double precision. c c lsoda solves the initial value problem for stiff or nonstiff c systems of first order ode-s, c dy/dt = f(t,y) , or, in component form, c dy(i)/dt = f(i) = f(i,t,y(1),y(2),...,y(neq)) (i = 1,...,neq). c c this a variant version of the lsode package. c it switches automatically between stiff and nonstiff methods. c this means that the user does not have to determine whether the c problem is stiff or not, and the solver will automatically choose the c appropriate method. it always starts with the nonstiff method. c c authors.. c linda r. petzold and alan c. hindmarsh, c computing and mathematics research division, l-316 c lawrence livermore national laboratory c livermore, ca 94550. c c references.. c 1. alan c. hindmarsh, odepack, a systematized collection of ode c solvers, in scientific computing, r. s. stepleman et al. (eds.), c north-holland, amsterdam, 1983, pp. 55-64. c 2. linda r. petzold, automatic selection of methods for solving c stiff and nonstiff systems of ordinary differential equations, c siam j. sci. stat. comput. 4 (1983), pp. 136-148. c----------------------------------------------------------------------- c summary of usage. c . . .