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.
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 the second summation may be replaced by more accurate approximations
.