Author(s): K.S. Kölbig | Library: MATHLIB |
Submitter: | Submitted: 15.02.1989 |
Language: Fortran | Revised: 01.12.1994 |
Subroutine subprograms RDEQMR and DDEQMR advance the solution of the system of simultaneous first-order differential equations
from a specified value to a specified value of the independent variable x. The integration step-length is automatically adjusted to keep the estimated error per step less than a specified value.
On computers other than CDC and Cray, only the double-precision version DDEQBS is available. On CDC and Cray computers, only the single-precision version RDEQBS is available.
Structure:
SUBROUTINE subprograms
User Entry Names : RDEQMR, DDEQMR
Obsolete User Entry Names: DEQMR RDEQMR
Files Referenced : Unit 6
External References: MTLMTR, ABEND,
User-supplied SUBROUTINE subprogram
Usage:
For (type REAL), (type DOUBLE PRECISION),
CALL tDEQMR(N,X1,X2,Y,H0,EPS,SUB,W)
SUBROUTINE SUB(X,Y,F)where the variable X and the one-dimensional arrays Y(*) and F(*) are of type t. This subroutine must set
Method:
The method is a modification by Merson of the Runge-Kutta method. The initial value of the step-length h is taken to be the first of the numbers for which the estimated relative error at the end of the step is less than . At each susequent step, an estimate of the integration error for that step (proportional to ) is computed. If the corresponding relative error exceeds , the current step-length is halfed; if it is less than the step-length is doubled. This process is continued until is reached. (For details, see Ref. 1).
Error handling:
Error D202.1: If the requestec accuracy cannot obtained,
a message is written on
Unit 6, unless subroutine MTLSET (N002) has been called.
For , or or , control
is returned to the calling program without any change in Y.
Notes:
For well-conditioned systems of equations any reasonable value of the initial step length may be chosen. For ill-conditioned systems, the initial value of may be important, and tests with different values are advised. An inappropriate choice may lead to wrong results in such cases.
References: