The purpose of the black-box wrapper is to twofold:
The argument list for all the black-box wrapper for the nonstationary solvers is similar to that for the solvers themselves, with the addition of two new arguments:
call JT_Nonstationary (method, mode, b, a, ia, ja, iparm, rparm,
& x, cpu, rnormt, errt, rnorm, err, ap, iap, jap, status)
Details about new arguments follow:
0
black-box mode
Control parameters (iparm and rparm values) are set by the routine to reasonable defaults, depending on method. One parameter, however, must still be set. That is, the maximum number of iterations to allow, iparm(_JT_ itmax_).
1
hybrid, or partial black-box, mode
Control parameters related to output, and overall convergence criterion, are set by user. Remainder are set automatically by the routine. Parameters that can be set are:
iparm(_JT_ out_)
iparm(_JT_ luout_)
iparm(_JT_ luerr_)
iparm(_JT_ itmax_)
iparm(_JT_ stop_) (see Note)
iparm(_JT_ pre_)
rparm(_JT_ eps_) (see Note)
Note: Defaults can be used for iparm(_JT_ stop_) and rparm(_JT_ eps_) by by setting them to zero.
2
full manual mode
iparm and rparm are assumed to be set on entry.
| 0 |
|
unspecified (black-box) |
| 1 |
|
standard conjugate gradients (CG) |
| 2 |
|
transpose-free quasi-minimal residuals method (TFQMR) |
| 3 |
|
generalized minimal residual (GMRES) |