Note: please be advised that D01RBF has been deprecated. You are advised to follow the directions in
Section 9.1 in D01RAF to replicate its functionality. Furthermore, any future diagnostic enhancements for
D01RAF will only be available in this manner.
D01RBF is an expert diagnostic routine associated with
D01RAF to allow the arrays
ICOM and
COM to be examined. These arrays contain details of the adaptive process. Facilities are provided, via the parameter
MONIT, to refine the final answer by adjusting the contribution made by specific segments.
SUBROUTINE D01RBF ( |
MONIT, NI, DINEST, ERREST, ICOM, LICOM, LICUSD, COM, LCOM, LCUSD, IUSER, RUSER, IFAIL) |
INTEGER |
NI, ICOM(LICOM), LICOM, LICUSD, LCOM, LCUSD, IUSER(*), IFAIL |
REAL (KIND=nag_wp) |
DINEST(NI), ERREST(NI), COM(LCOM), RUSER(*) |
EXTERNAL |
MONIT |
|
The principal role of D01RBF is to take information about the adaptive process that is stored in
COM and
ICOM and present it in more intelligible parameters. A monitor routine,
MONIT, allows you to report the progress of the adaptive process back to the calling program between those calls of
D01RAF which have returned
or
.
A secondary role, useful only if you are an expert, is to utilize
MONIT in such a way that it can override aspects of that information. Specifically, you may choose to remove the contributions of one or more individual segments from the estimates for individual integrals contained in
DINEST and
ERREST, and replace such information with a more accurate approximation you have calculated by some other means. Clearly this facility should only be used with care. We recommend that it be used only after
D01RAF has returned with
, i.e., it has completed the computation of the approximations of the integrals.
None.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
Not applicable.
Not applicable.
When called after
D01RAF has returned
, D01RBF may be used to modify
DINEST and
ERREST. For example if
for some
,
, indicating integral
was badly behaved over segment
, then one may potentially modify
as follows:
- : performed using accurate technique for specific function.
ERREST may be similarly updated if required.
Note: if integral
has been approximated successfully due to extrapolation, indicated by
after
D01RAF has completed,
will not be the direct sum of the contributing segments. You may however reconstruct the unextrapolated integral estimate as,
where
and
, the sets of all contributing segements where integral
has been evaluated accurately and inaccurately respectively. Some or all of the terms in the summation over
may be replaced with more accurate approximations
if available.