d02zaf calculates the weighted norm of the local error estimate from inside a
monitr called from an integrator in
Sub-chapter D02M–N (e.g., see
d02nbf).
d02zaf is for use with the direct communication integrators
d02nbf,
d02ncf,
d02ndf,
d02ngf,
d02nhf and
d02njf and the reverse communication integrators
d02nmf and
d02nnf. It must be used only inside
monitr (if this option is selected) for the direct communication routines or on the equivalent return for the reverse communication routines. It may be used to evaluate the norm of the scaled local error estimate,
, where the weights used are contained in
and the norm used is as defined by an earlier call to the integrator setup routine (
d02mvf,
d02nvf or
d02nwf). Its use is described under the description of
monitr in the specifications for the direct communication integrators mentioned above.
None.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
d02zaf is not thread safe and should not be called from a multithreaded user program. Please see
Section 3.12.1 in How to Use the NAG Library and its Documentation for more information on thread safety.
d02zaf should only be used within
monitr associated with the integrators in
Sub-chapter D02M–N (e.g., see
d02nbf). Its use and only valid calling sequence are fully documented in the description of
monitr in the routine documents for the integrators.
This example solves the well-known stiff Robertson problem
over the range
with initial conditions
and
using scalar error control (
) and computation of the solution at
with
tcrit (e.g., see
d02mvf) set to
(
). A BDF integrator (setup routine
d02nvf) is used and a modified Newton method is selected. This example illustrates the use of
d02zaf within a monitor routine
monitr to output intermediate results during the integration. The same problem is solved in the example program for
d02nbf where no monitoring was performed and so no intermediate solution information is output.