Wrapper for LUSOL. Will eventually be moved into a separate repo.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=ip), | public | :: | nout | = | 6 | ||
| integer(kind=ip), | public | :: | lprint | = | 0 | ||
| integer(kind=ip), | public | :: | maxcol | = | 5 | ||
| integer(kind=ip), | public | :: | method | = | 0 | ||
| integer(kind=ip), | public | :: | keepLU | = | 1 | ||
| real(kind=rp), | public | :: | Ltol1 | = | 100.0_rp | ||
| real(kind=rp), | public | :: | Ltol2 | = | 10.0_rp | ||
| real(kind=rp), | public | :: | small | = | epsilon(1.0_rp)**0.8_rp | ||
| real(kind=rp), | public | :: | Utol1 | = | epsilon(1.0_rp)**0.67_rp | ||
| real(kind=rp), | public | :: | Utol2 | = | epsilon(1.0_rp)**0.67_rp | ||
| real(kind=rp), | public | :: | Uspace | = | 3.0_rp | ||
| real(kind=rp), | public | :: | dens1 | = | 0.3_rp | ||
| real(kind=rp), | public | :: | dens2 | = | 0.5_rp | ||
| integer(kind=ip), | public | :: | mode | = | 5 |
Wrapper for lu1fac + lu6sol to solve a linear system A*x = b.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n_cols |
|
||
| integer, | intent(in) | :: | n_rows |
|
||
| integer, | intent(in) | :: | n_nonzero |
number of nonzero elements of A. |
||
| integer, | intent(in), | dimension(n_nonzero) | :: | irow |
sparsity pattern (size is |
|
| integer, | intent(in), | dimension(n_nonzero) | :: | icol |
sparsity pattern (size is |
|
| real(kind=rp), | intent(in), | dimension(n_nonzero) | :: | mat |
matrix elements (size is |
|
| real(kind=rp), | intent(in), | dimension(n_rows) | :: | b |
right hand side (size is |
|
| real(kind=rp), | intent(out), | dimension(n_cols) | :: | x |
solution !size is |
|
| integer, | intent(out) | :: | istat |
status code |
||
| type(lusol_settings), | intent(in), | optional | :: | settings |
settings (if not present, defaults are used) |