![]() |
MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
|
This module contains the IMS linear accelerator subroutines. More...
Functions/Subroutines | |
| subroutine | ims_base_cg (icnvg, itmax, innerit, neq, nja, niapc, njapc, ipc, icnvgopt, north, iscl, rscale, hscale, dvclose, rclose, l2norm0, epfact, ia0, ja0, a0, iapc, japc, apc, x, b, d, p, q, z, njlu, iw, jlu, nconv, convnmod, convmodstart, caccel, summary) |
| Preconditioned Conjugate Gradient linear accelerator. | |
| subroutine | ims_base_bcgs (icnvg, itmax, innerit, neq, nja, niapc, njapc, ipc, icnvgopt, north, iscl, rscale, hscale, dvclose, rclose, l2norm0, epfact, ia0, ja0, a0, iapc, japc, apc, x, b, d, p, q, t, v, dhat, phat, qhat, njlu, iw, jlu, nconv, convnmod, convmodstart, caccel, summary) |
| Preconditioned BiConjugate Gradient Stabilized linear accelerator. | |
| subroutine | ims_base_calc_order (iord, neq, nja, ia, ja, lorder, iorder) |
| Calculate LORDER AND IORDER. | |
| subroutine | ims_base_scale (iopt, iscl, neq, nja, ia, ja, amat, x, b, dscale, dscale2) |
| Scale the coefficient matrix. | |
| subroutine | ims_base_cnvg_scale (neq, iord, dscale, dscale2, lorder, rscale, hscale) |
| Set the factors that return the residual and head change to model units, in the order of the reordered system. | |
| subroutine | ims_base_pcu (iout, nja, neq, niapc, njapc, ipc, relax, amat, ia, ja, apc, iapc, japc, iw, w, level, droptol, njlu, njw, nwlu, jlu, jw, wlu) |
| Update the preconditioner. | |
| subroutine | ims_base_pcjac (nja, neq, amat, apc, ia, ja) |
| Jacobi preconditioner. | |
| subroutine | ims_base_jaca (neq, a, d1, d2) |
| Apply the Jacobi preconditioner. | |
| subroutine | ims_base_pcilu0 (nja, neq, amat, ia, ja, apc, iapc, japc, iw, w, relax, ipcflag, delta) |
| Update the ILU0 preconditioner. | |
| subroutine | ims_base_ilu0a (nja, neq, apc, iapc, japc, r, d) |
| Apply the ILU0 and MILU0 preconditioners. | |
| subroutine | ims_base_testcnvg (icnvgopt, icnvg, iiter, dvmax, rmax, rmax0, epfact, dvclose, rclose) |
| Test for solver convergence. | |
| subroutine | ims_calc_pcdims (neq, nja, ia, level, ipc, niapc, njapc, njlu, njw, nwlu) |
| subroutine | ims_base_pccrs (neq, nja, ia, ja, iapc, japc) |
| Generate CRS pointers for the preconditioner. | |
| subroutine | ims_base_isort (nval, iarray) |
| In-place sorting for an integer array. | |
| subroutine | ims_base_residual (neq, nja, x, b, d, a, ia, ja) |
| Calculate residual. | |
| real(dp) function | ims_base_epfact (icnvgopt, kstp) |
| Function returning EPFACT. | |
Variables | |
| type(blockparsertype), private | parser |
This module contains the IMS linear accelerator subroutines used by a MODFLOW 6 solution.
| subroutine imslinearbasemodule::ims_base_bcgs | ( | integer(i4b), intent(inout) | icnvg, |
| integer(i4b), intent(in) | itmax, | ||
| integer(i4b), intent(inout) | innerit, | ||
| integer(i4b), intent(in) | neq, | ||
| integer(i4b), intent(in) | nja, | ||
| integer(i4b), intent(in) | niapc, | ||
| integer(i4b), intent(in) | njapc, | ||
| integer(i4b), intent(in) | ipc, | ||
| integer(i4b), intent(in) | icnvgopt, | ||
| integer(i4b), intent(in) | north, | ||
| integer(i4b), intent(in) | iscl, | ||
| real(dp), dimension(*), intent(in) | rscale, | ||
| real(dp), dimension(*), intent(in) | hscale, | ||
| real(dp), intent(in) | dvclose, | ||
| real(dp), intent(in) | rclose, | ||
| real(dp), intent(in) | l2norm0, | ||
| real(dp), intent(in) | epfact, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia0, | ||
| integer(i4b), dimension(nja), intent(in) | ja0, | ||
| real(dp), dimension(nja), intent(in) | a0, | ||
| integer(i4b), dimension(niapc + 1), intent(in) | iapc, | ||
| integer(i4b), dimension(njapc), intent(in) | japc, | ||
| real(dp), dimension(njapc), intent(in) | apc, | ||
| real(dp), dimension(neq), intent(inout) | x, | ||
| real(dp), dimension(neq), intent(in) | b, | ||
| real(dp), dimension(neq), intent(inout) | d, | ||
| real(dp), dimension(neq), intent(inout) | p, | ||
| real(dp), dimension(neq), intent(inout) | q, | ||
| real(dp), dimension(neq), intent(inout) | t, | ||
| real(dp), dimension(neq), intent(inout) | v, | ||
| real(dp), dimension(neq), intent(inout) | dhat, | ||
| real(dp), dimension(neq), intent(inout) | phat, | ||
| real(dp), dimension(neq), intent(inout) | qhat, | ||
| integer(i4b), intent(in) | njlu, | ||
| integer(i4b), dimension(niapc), intent(in) | iw, | ||
| integer(i4b), dimension(njlu), intent(in) | jlu, | ||
| integer(i4b), intent(in) | nconv, | ||
| integer(i4b), intent(in) | convnmod, | ||
| integer(i4b), dimension(convnmod + 1), intent(inout) | convmodstart, | ||
| character(len=31), dimension(nconv), intent(inout) | caccel, | ||
| type(convergencesummarytype), intent(in), pointer | summary ) |
Apply the Preconditioned BiConjugate Gradient Stabilized linear accelerator to the current coefficient matrix, right-hand side, using the currentdependent-variable.
| [in,out] | icnvg | convergence flag (1) non-convergence (0) |
| [in] | itmax | maximum number of inner iterations |
| [in,out] | innerit | inner iteration count |
| [in] | neq | number of equations |
| [in] | nja | number of non-zero entries |
| [in] | niapc | preconditioner number of rows |
| [in] | njapc | preconditioner number of non-zero entries |
| [in] | ipc | preconditioner option |
| [in] | icnvgopt | flow convergence criteria option |
| [in] | north | orthogonalization frequency |
| [in] | iscl | scaling option |
| [in] | rscale | factor returning the residual to model units |
| [in] | hscale | factor returning the head change to model units |
| [in] | dvclose | dependent-variable closure criteria |
| [in] | rclose | flow closure criteria |
| [in] | l2norm0 | initial L-2 norm for system of equations |
| [in] | epfact | factor for decreasing flow convergence criteria for subsequent Picard iterations |
| [in] | ia0 | CRS row pointers |
| [in] | ja0 | CRS column pointers |
| [in] | a0 | coefficient matrix |
| [in] | iapc | preconditioner CRS row pointers |
| [in] | japc | preconditioner CRS column pointers |
| [in] | apc | preconditioner matrix |
| [in,out] | x | dependent-variable vector |
| [in] | b | right-hand side vector |
| [in,out] | d | preconditioner working vector |
| [in,out] | p | preconditioner working vector |
| [in,out] | q | preconditioner working vector |
| [in,out] | t | preconditioner working vector |
| [in,out] | v | preconditioner working vector |
| [in,out] | dhat | BCGS preconditioner working vector |
| [in,out] | phat | BCGS preconditioner working vector |
| [in,out] | qhat | BCGS preconditioner working vector |
| [in] | njlu | preconditioner length of JLU vector |
| [in] | iw | preconditioner integer working vector |
| [in] | jlu | preconditioner JLU working vector |
| [in] | nconv | maximum number of inner iterations in a time step (maxiter * maxinner) |
| [in] | convnmod | number of models in the solution |
| [in,out] | convmodstart | pointer to the start of each model in the convmod* arrays |
| [in,out] | caccel | convergence string |
| [in] | summary | Convergence summary report |
Definition at line 255 of file ImsLinearBase.f90.


| subroutine imslinearbasemodule::ims_base_calc_order | ( | integer(i4b), intent(in) | iord, |
| integer(i4b), intent(in) | neq, | ||
| integer(i4b), intent(in) | nja, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
| integer(i4b), dimension(nja), intent(in) | ja, | ||
| integer(i4b), dimension(neq), intent(inout) | lorder, | ||
| integer(i4b), dimension(neq), intent(inout) | iorder ) |
Calculate LORDER and IORDER for reordering.
| [in] | iord | reordering option |
| [in] | neq | number of rows |
| [in] | nja | number of non-zero entries |
| [in] | ia | row pointer |
| [in] | ja | column pointer |
| [in,out] | lorder | reorder vector |
| [in,out] | iorder | inverse of reorder vector |
Definition at line 563 of file ImsLinearBase.f90.


| subroutine imslinearbasemodule::ims_base_cg | ( | integer(i4b), intent(inout) | icnvg, |
| integer(i4b), intent(in) | itmax, | ||
| integer(i4b), intent(inout) | innerit, | ||
| integer(i4b), intent(in) | neq, | ||
| integer(i4b), intent(in) | nja, | ||
| integer(i4b), intent(in) | niapc, | ||
| integer(i4b), intent(in) | njapc, | ||
| integer(i4b), intent(in) | ipc, | ||
| integer(i4b), intent(in) | icnvgopt, | ||
| integer(i4b), intent(in) | north, | ||
| integer(i4b), intent(in) | iscl, | ||
| real(dp), dimension(*), intent(in) | rscale, | ||
| real(dp), dimension(*), intent(in) | hscale, | ||
| real(dp), intent(in) | dvclose, | ||
| real(dp), intent(in) | rclose, | ||
| real(dp), intent(in) | l2norm0, | ||
| real(dp), intent(in) | epfact, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia0, | ||
| integer(i4b), dimension(nja), intent(in) | ja0, | ||
| real(dp), dimension(nja), intent(in) | a0, | ||
| integer(i4b), dimension(niapc + 1), intent(in) | iapc, | ||
| integer(i4b), dimension(njapc), intent(in) | japc, | ||
| real(dp), dimension(njapc), intent(in) | apc, | ||
| real(dp), dimension(neq), intent(inout) | x, | ||
| real(dp), dimension(neq), intent(inout) | b, | ||
| real(dp), dimension(neq), intent(inout) | d, | ||
| real(dp), dimension(neq), intent(inout) | p, | ||
| real(dp), dimension(neq), intent(inout) | q, | ||
| real(dp), dimension(neq), intent(inout) | z, | ||
| integer(i4b), intent(in) | njlu, | ||
| integer(i4b), dimension(niapc), intent(in) | iw, | ||
| integer(i4b), dimension(njlu), intent(in) | jlu, | ||
| integer(i4b), intent(in) | nconv, | ||
| integer(i4b), intent(in) | convnmod, | ||
| integer(i4b), dimension(convnmod + 1), intent(inout) | convmodstart, | ||
| character(len=31), dimension(nconv), intent(inout) | caccel, | ||
| type(convergencesummarytype), intent(in), pointer | summary ) |
Apply the Preconditioned Conjugate Gradient linear accelerator to the current coefficient matrix, right-hand side, using the current dependent-variable.
| [in,out] | icnvg | convergence flag (1) non-convergence (0) |
| [in] | itmax | maximum number of inner iterations |
| [in,out] | innerit | inner iteration count |
| [in] | neq | number of equations |
| [in] | nja | number of non-zero entries |
| [in] | niapc | preconditioner number of rows |
| [in] | njapc | preconditioner number of non-zero entries |
| [in] | ipc | preconditioner option |
| [in] | icnvgopt | flow convergence criteria option |
| [in] | north | orthogonalization frequency |
| [in] | iscl | scaling option |
| [in] | rscale | factor returning the residual to model units |
| [in] | hscale | factor returning the head change to model units |
| [in] | dvclose | dependent-variable closure criteria |
| [in] | rclose | flow closure criteria |
| [in] | l2norm0 | initial L-2 norm for system of equations |
| [in] | epfact | factor for decreasing flow convergence criteria for subsequent Picard iterations |
| [in] | ia0 | CRS row pointers |
| [in] | ja0 | CRS column pointers |
| [in] | a0 | coefficient matrix |
| [in] | iapc | preconditioner CRS row pointers |
| [in] | japc | preconditioner CRS column pointers |
| [in] | apc | preconditioner matrix |
| [in,out] | x | dependent-variable vector |
| [in,out] | b | right-hand side vector |
| [in,out] | d | working vector |
| [in,out] | p | working vector |
| [in,out] | q | working vector |
| [in,out] | z | working vector |
| [in] | njlu | preconditioner length of JLU vector |
| [in] | iw | preconditioner integer working vector |
| [in] | jlu | preconditioner JLU working vector |
| [in] | nconv | maximum number of inner iterations in a time step (maxiter * maxinner) |
| [in] | convnmod | number of models in the solution |
| [in,out] | convmodstart | pointer to the start of each model in the convmod* arrays |
| [in,out] | caccel | convergence string |
| [in] | summary | Convergence summary report |
Definition at line 31 of file ImsLinearBase.f90.


| subroutine imslinearbasemodule::ims_base_cnvg_scale | ( | integer(i4b), intent(in) | neq, |
| integer(i4b), intent(in) | iord, | ||
| real(dp), dimension(neq), intent(in) | dscale, | ||
| real(dp), dimension(neq), intent(in) | dscale2, | ||
| integer(i4b), dimension(*), intent(inout) | lorder, | ||
| real(dp), dimension(neq), intent(inout) | rscale, | ||
| real(dp), dimension(neq), intent(inout) | hscale ) |
| [in] | neq | number of equations |
| [in] | iord | reordering option |
| [in] | dscale | first scaling vector |
| [in] | dscale2 | second scaling vector |
| [in,out] | lorder | reordering mapping |
| [in,out] | rscale | residual factor |
| [in,out] | hscale | head change factor |
Definition at line 766 of file ImsLinearBase.f90.


| real(dp) function imslinearbasemodule::ims_base_epfact | ( | integer(i4b) | icnvgopt, |
| integer(i4b) | kstp ) |
| icnvgopt | IMS convergence option |
| kstp | time step number |
Definition at line 1361 of file ImsLinearBase.f90.

| subroutine imslinearbasemodule::ims_base_ilu0a | ( | integer(i4b), intent(in) | nja, |
| integer(i4b), intent(in) | neq, | ||
| real(dp), dimension(nja), intent(in) | apc, | ||
| integer(i4b), dimension(neq + 1), intent(in) | iapc, | ||
| integer(i4b), dimension(nja), intent(in) | japc, | ||
| real(dp), dimension(neq), intent(in) | r, | ||
| real(dp), dimension(neq), intent(inout) | d ) |
Apply the ILU0 and MILU0 preconditioners to the passed vector (R).
| [in] | nja | number of non-zero entries |
| [in] | neq | number of equations |
| [in] | apc | ILU0/MILU0 preconditioner matrix |
| [in] | iapc | ILU0/MILU0 preconditioner CRS row pointers |
| [in] | japc | ILU0/MILU0 preconditioner CRS column pointers |
| [in] | r | input vector |
| [in,out] | d | output vector after applying APC to R |
Definition at line 1096 of file ImsLinearBase.f90.

| subroutine imslinearbasemodule::ims_base_isort | ( | integer(i4b), intent(in) | nval, |
| integer(i4b), dimension(nval), intent(inout) | iarray ) |
Subroutine sort an integer array in-place.
| [in] | nval | length of the integer array |
| [in,out] | iarray | integer array to be sorted |
Definition at line 1313 of file ImsLinearBase.f90.

| subroutine imslinearbasemodule::ims_base_jaca | ( | integer(i4b), intent(in) | neq, |
| real(dp), dimension(neq), intent(in) | a, | ||
| real(dp), dimension(neq), intent(in) | d1, | ||
| real(dp), dimension(neq), intent(inout) | d2 ) |
Apply the Jacobi preconditioner and return the resultant vector.
| [in] | neq | number of equations |
| [in] | a | Jacobi preconditioner |
| [in] | d1 | input vector |
| [in,out] | d2 | resultant vector |
Definition at line 945 of file ImsLinearBase.f90.
| subroutine imslinearbasemodule::ims_base_pccrs | ( | integer(i4b), intent(in) | neq, |
| integer(i4b), intent(in) | nja, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
| integer(i4b), dimension(nja), intent(in) | ja, | ||
| integer(i4b), dimension(neq + 1), intent(inout) | iapc, | ||
| integer(i4b), dimension(nja), intent(inout) | japc ) |
Generate the CRS row and column pointers for the preconditioner. JAPC(1:NEQ) hHas the position of the upper entry for a row, JAPC(NEQ+1:NJA) is the column position for entry, APC(1:NEQ) is the preconditioned inverse of the diagonal, and APC(NEQ+1:NJA) are the preconditioned entries for off diagonals.
Definition at line 1252 of file ImsLinearBase.f90.


| subroutine imslinearbasemodule::ims_base_pcilu0 | ( | integer(i4b), intent(in) | nja, |
| integer(i4b), intent(in) | neq, | ||
| real(dp), dimension(nja), intent(in) | amat, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
| integer(i4b), dimension(nja), intent(in) | ja, | ||
| real(dp), dimension(nja), intent(inout) | apc, | ||
| integer(i4b), dimension(neq + 1), intent(inout) | iapc, | ||
| integer(i4b), dimension(nja), intent(inout) | japc, | ||
| integer(i4b), dimension(neq), intent(inout) | iw, | ||
| real(dp), dimension(neq), intent(inout) | w, | ||
| real(dp), intent(in) | relax, | ||
| integer(i4b), intent(inout) | ipcflag, | ||
| real(dp), intent(in) | delta ) |
Update the ILU0 preconditioner using the current coefficient matrix.
| [in] | nja | number of non-zero entries |
| [in] | neq | number of equations |
| [in] | amat | coefficient matrix |
| [in] | ia | CRS row pointers |
| [in] | ja | CRS column pointers |
| [in,out] | apc | preconditioned matrix |
| [in,out] | iapc | preconditioner CRS row pointers |
| [in,out] | japc | preconditioner CRS column pointers |
| [in,out] | iw | preconditioner integer work vector |
| [in,out] | w | preconditioner work vector |
| [in] | relax | MILU0 preconditioner relaxation factor |
| [in,out] | ipcflag | preconditioner error flag |
| [in] | delta | factor used to correct non-diagonally dominant matrices |
Definition at line 966 of file ImsLinearBase.f90.

| subroutine imslinearbasemodule::ims_base_pcjac | ( | integer(i4b), intent(in) | nja, |
| integer(i4b), intent(in) | neq, | ||
| real(dp), dimension(nja), intent(in) | amat, | ||
| real(dp), dimension(neq), intent(inout) | apc, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
| integer(i4b), dimension(nja), intent(in) | ja ) |
Calculate the Jacobi preconditioner (inverse of the diagonal) using the current coefficient matrix.
| [in] | nja | number of non-zero entries |
| [in] | neq | number of equations |
| [in] | amat | coefficient matrix |
| [in,out] | apc | preconditioner matrix |
| [in] | ia | CRS row pointers |
| [in] | ja | CRS column pointers |
Definition at line 910 of file ImsLinearBase.f90.
| subroutine imslinearbasemodule::ims_base_pcu | ( | integer(i4b), intent(in) | iout, |
| integer(i4b), intent(in) | nja, | ||
| integer(i4b), intent(in) | neq, | ||
| integer(i4b), intent(in) | niapc, | ||
| integer(i4b), intent(in) | njapc, | ||
| integer(i4b), intent(in) | ipc, | ||
| real(dp), intent(in) | relax, | ||
| real(dp), dimension(nja), intent(in) | amat, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
| integer(i4b), dimension(nja), intent(in) | ja, | ||
| real(dp), dimension(njapc), intent(inout) | apc, | ||
| integer(i4b), dimension(niapc + 1), intent(inout) | iapc, | ||
| integer(i4b), dimension(njapc), intent(inout) | japc, | ||
| integer(i4b), dimension(niapc), intent(inout) | iw, | ||
| real(dp), dimension(niapc), intent(inout) | w, | ||
| integer(i4b), intent(in) | level, | ||
| real(dp), intent(in) | droptol, | ||
| integer(i4b), intent(in) | njlu, | ||
| integer(i4b), intent(in) | njw, | ||
| integer(i4b), intent(in) | nwlu, | ||
| integer(i4b), dimension(njlu), intent(inout) | jlu, | ||
| integer(i4b), dimension(njw), intent(inout) | jw, | ||
| real(dp), dimension(nwlu), intent(inout) | wlu ) |
Update the preconditioner using the current coefficient matrix.
| [in] | iout | simulation listing file unit |
| [in] | nja | number of non-zero entries |
| [in] | neq | number of equations |
| [in] | niapc | preconditioner number of rows |
| [in] | njapc | preconditioner number of non-zero entries |
| [in] | ipc | preconditioner (1) ILU0 (2) MILU0 (3) ILUT (4) MILUT |
| [in] | relax | preconditioner relaxation factor for MILU0 and MILUT |
| [in] | amat | coefficient matrix |
| [in] | ia | CRS row pointers |
| [in] | ja | CRS column pointers |
| [in,out] | apc | preconditioner matrix |
| [in,out] | iapc | preconditioner CRS row pointers |
| [in,out] | japc | preconditioner CRS column pointers |
| [in,out] | iw | preconditioner integer work vector |
| [in,out] | w | preconditioner work vector |
| [in] | level | number of levels of fill for ILUT and MILUT |
| [in] | droptol | drop tolerance |
| [in] | njlu | length of JLU working vector |
| [in] | njw | length of JW working vector |
| [in] | nwlu | length of WLU working vector |
| [in,out] | jlu | ILUT/MILUT JLU working vector |
| [in,out] | jw | ILUT/MILUT JW working vector |
| [in,out] | wlu | ILUT/MILUT WLU working vector |
Definition at line 794 of file ImsLinearBase.f90.


| subroutine imslinearbasemodule::ims_base_residual | ( | integer(i4b), intent(in) | neq, |
| integer(i4b), intent(in) | nja, | ||
| real(dp), dimension(neq), intent(in) | x, | ||
| real(dp), dimension(neq), intent(in) | b, | ||
| real(dp), dimension(neq), intent(inout) | d, | ||
| real(dp), dimension(nja), intent(in) | a, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
| integer(i4b), dimension(nja), intent(in) | ja ) |
Subroutine to calculate the residual.
| [in] | neq | length of vectors |
| [in] | nja | length of coefficient matrix |
| [in] | x | dependent variable |
| [in] | b | right-hand side |
| [in,out] | d | residual |
| [in] | a | coefficient matrix |
| [in] | ia | CRS row pointers |
| [in] | ja | CRS column pointers |
Definition at line 1336 of file ImsLinearBase.f90.


| subroutine imslinearbasemodule::ims_base_scale | ( | integer(i4b), intent(in) | iopt, |
| integer(i4b), intent(in) | iscl, | ||
| integer(i4b), intent(in) | neq, | ||
| integer(i4b), intent(in) | nja, | ||
| integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
| integer(i4b), dimension(nja), intent(in) | ja, | ||
| real(dp), dimension(nja), intent(inout) | amat, | ||
| real(dp), dimension(neq), intent(inout) | x, | ||
| real(dp), dimension(neq), intent(inout) | b, | ||
| real(dp), dimension(neq), intent(inout) | dscale, | ||
| real(dp), dimension(neq), intent(inout) | dscale2 ) |
Scale the coefficient matrix (AMAT), the right-hand side (B), and the estimate of the dependent variable (X).
| [in] | iopt | flag to scale (0) or unscale the system of equations |
| [in] | iscl | scaling option (1) symmetric (2) L-2 norm |
| [in] | neq | number of equations |
| [in] | nja | number of non-zero entries |
| [in] | ia | CRS row pointer |
| [in] | ja | CRS column pointer |
| [in,out] | amat | coefficient matrix |
| [in,out] | x | dependent variable |
| [in,out] | b | right-hand side |
| [in,out] | dscale | first scaling vector |
| [in,out] | dscale2 | second scaling vector |
Definition at line 626 of file ImsLinearBase.f90.

| subroutine imslinearbasemodule::ims_base_testcnvg | ( | integer(i4b), intent(in) | icnvgopt, |
| integer(i4b), intent(inout) | icnvg, | ||
| integer(i4b), intent(in) | iiter, | ||
| real(dp), intent(in) | dvmax, | ||
| real(dp), intent(in) | rmax, | ||
| real(dp), intent(in) | rmax0, | ||
| real(dp), intent(in) | epfact, | ||
| real(dp), intent(in) | dvclose, | ||
| real(dp), intent(in) | rclose ) |
General routine for testing for solver convergence based on the user-specified convergence option (Icnvgopt).
| [in] | icnvgopt | convergence option - see documentation for option |
| [in,out] | icnvg | flag indicating if convergence achieved (1) or not (0) |
| [in] | iiter | inner iteration number (used for strict convergence option) |
| [in] | dvmax | maximum dependent-variable change |
| [in] | rmax | maximum flow change |
| [in] | rmax0 | initial flow change (initial L2-norm) |
| [in] | epfact | factor for reducing convergence criteria in subsequent Picard iterations |
| [in] | dvclose | Maximum depenendent-variable change allowed |
| [in] | rclose | Maximum flow change allowed |
Definition at line 1146 of file ImsLinearBase.f90.

| subroutine imslinearbasemodule::ims_calc_pcdims | ( | integer(i4b), intent(in) | neq, |
| integer(i4b), intent(in) | nja, | ||
| integer(i4b), dimension(:), intent(in) | ia, | ||
| integer(i4b), intent(in) | level, | ||
| integer(i4b), intent(in) | ipc, | ||
| integer(i4b), intent(inout) | niapc, | ||
| integer(i4b), intent(inout) | njapc, | ||
| integer(i4b), intent(inout) | njlu, | ||
| integer(i4b), intent(inout) | njw, | ||
| integer(i4b), intent(inout) | nwlu ) |
| [in] | neq | nr. of rows A |
| [in] | nja | nr. of nonzeros A |
| [in] | ia | CSR row pointers A |
| [in] | level | fill level ILU |
| [in] | ipc | IMS preconditioner type |
| [in,out] | niapc | work array size |
| [in,out] | njapc | work array size |
| [in,out] | njlu | work array size |
| [in,out] | njw | work array size |
| [in,out] | nwlu | work array size |
Definition at line 1193 of file ImsLinearBase.f90.

|
private |
Definition at line 20 of file ImsLinearBase.f90.