A General Algorithm for Local Error Control in the RKrGLm Method
483
entire error control procedure is implemented on the next subinterval
2
H . Note also
that it is the
qth-order solution at the endpoint of
1
H that is propagated in the RK
solution at the next node.
3.3 Initial stepsize
To find a stepsize
0
h to begin the calculation process, we assume that the local error
coefficient
1,
1
k
L = and then find
0
h from
{}
(
)
1
1
00,
max ,
r
AR k
hy
δδ
= (3.11)
Solutions obtained with RK
r and RKq using this stepsize then enable a new, possibly larger,
0
h to be determined, and it is this new
0
h that is used to find the solutions
1,r
w and
1,q
w
at the node
1
x .
3.4 Final node
We keep track of the nodes that evolve from the stepsize adjustments, until the end of the
interval of integration
b has been exceeded. We then backtrack to the node on
,
ab
⎡⎤
⎣⎦
closest
to
b (call it
1
x
−
), determine the stepsize
11
f
hbx
−
− , and then find
,br
w and
,bq
w , the
numerical solutions at
b using RKr and RKq, with
1
h
,
1
x
and
1,
q
w
−
as input for both
RK
r and RKq. This completes the error control procedure.
4. Comments on embedded RK methods and continuous extensions
Our intention has been to develop an effective local error control algorithm for RKrGLm,
and we believe that the above-mentioned algorithm achieves this objective. Moreover, the
algorithm is general in the choice of RK
r and RKq. These two methods could be entirely
independent of each other, or they could constitute an embedded pair, as in RK(
r,q). This
latter choice would require fewer stage evaluations at each RK node, and so would be more
efficient than if RK
r and RKq were independent. Nevertheless, the use of an embedded pair
is not necessary for the proper functioning of our error control algorithm.
The option of constructing
()
P
Hx using the nodes
121
{,,,}
mp p p
xxx x
−
… for error control
at
2
x (as opposed to using
21
{,, }
pp
xx
… ) is worth considering. Such a polynomial,
together with the Hermite polynomial constructed on
01
{,,, }
m
xx x… , forms a piecewise
continuous approximation to
x
on
021
[, ]
p
xx
−
. Of course, this process is repeated at the
nodes
221 31
{, ,, }
pp p
xx x
+−
… , and so on. In this way the Hermite polynomials, which must be
constructed out of necessity for error control purposes, become a piecewise continuous (and
smooth) extension of the approximate discrete solution. Such an extension is not constructed
a posteriori; rather, it is constructed on each subinterval
i
H as the RKrGLm algorithm
proceeds, and so may be used for event trapping.
5. Numerical examples
We will use RK5GL3 to demonstrate the error control algorithm. In RK5GL3 we have
5, 3
rm== so that the tandem method must be an eighth-order RK method, which we