![]() |
MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
|

Public Member Functions | |
| procedure | imslinear_allocate (this, name, iout, iprims, mxiter, neq, matrix, rhs, x, linear_settings) |
| Allocate storage and read data. | |
| procedure | imslinear_summary (this, mxiter) |
| Write summary of settings. | |
| procedure | imslinear_apply (this, icnvg, kstp, kiter, in_iter, nconv, convnmod, convmodstart, caccel, summary) |
| Base linear accelerator subroutine. | |
| procedure | imslinear_da (this) |
| Deallocate memory. | |
Public Attributes | |
| character(len=lenmempath) | memorypath |
| the path for storing variables in the memory manager | |
| integer(i4b), pointer | iout => NULL() |
| simulation listing file unit | |
| integer(i4b), pointer | iprims => NULL() |
| print flag | |
| real(dp), pointer | dvclose => null() |
| dependent variable closure criterion | |
| real(dp), pointer | rclose => null() |
| residual closure criterion | |
| integer(i4b), pointer | icnvgopt => null() |
| convergence option | |
| integer(i4b), pointer | iter1 => null() |
| max. iterations | |
| integer(i4b), pointer | ilinmeth => null() |
| linear solver method | |
| integer(i4b), pointer | iscl => null() |
| scaling method | |
| integer(i4b), pointer | iord => null() |
| reordering method | |
| integer(i4b), pointer | north => null() |
| number of orthogonalizations | |
| real(dp), pointer | relax => null() |
| relaxation factor | |
| integer(i4b), pointer | level => null() |
| nr. of preconditioner levels | |
| real(dp), pointer | droptol => null() |
| drop tolerance for preconditioner | |
| integer(i4b), pointer | ipc => NULL() |
| preconditioner flag | |
| integer(i4b), pointer | iacpc => NULL() |
| preconditioner CRS row pointers | |
| integer(i4b), pointer | niterc => NULL() |
| integer(i4b), pointer | niabcgs => NULL() |
| size of working vectors for BCGS linear accelerator | |
| integer(i4b), pointer | niapc => NULL() |
| preconditioner number of rows | |
| integer(i4b), pointer | njapc => NULL() |
| preconditioner number of non-zero entries | |
| real(dp), pointer | epfact => NULL() |
| factor for decreasing convergence criteria in seubsequent Picard iterations | |
| real(dp), pointer | l2norm0 => NULL() |
| initial L2 norm | |
| integer(i4b), pointer | njlu => NULL() |
| length of jlu work vector | |
| integer(i4b), pointer | njw => NULL() |
| length of jw work vector | |
| integer(i4b), pointer | nwlu => NULL() |
| length of wlu work vector | |
| integer(i4b), pointer | neq => NULL() |
| number of equations (rows in matrix) | |
| integer(i4b), pointer | nja => NULL() |
| number of non-zero values in amat | |
| integer(i4b), dimension(:), pointer, contiguous | ia => NULL() |
| position of start of each row | |
| integer(i4b), dimension(:), pointer, contiguous | ja => NULL() |
| column pointer | |
| real(dp), dimension(:), pointer, contiguous | amat => NULL() |
| coefficient matrix | |
| real(dp), dimension(:), pointer, contiguous | rhs => NULL() |
| right-hand side of equation | |
| real(dp), dimension(:), pointer, contiguous | x => NULL() |
| dependent variable | |
| real(dp), dimension(:), pointer, contiguous | dscale => NULL() |
| scaling factor | |
| real(dp), dimension(:), pointer, contiguous | dscale2 => NULL() |
| unscaling factor | |
| real(dp), dimension(:), pointer, contiguous | rscale => NULL() |
| factor returning the residual to model units | |
| real(dp), dimension(:), pointer, contiguous | hscale => NULL() |
| factor returning the head change to model units | |
| integer(i4b), dimension(:), pointer, contiguous | iapc => NULL() |
| position of start of each row in preconditioner matrix | |
| integer(i4b), dimension(:), pointer, contiguous | japc => NULL() |
| preconditioner matrix column pointer | |
| real(dp), dimension(:), pointer, contiguous | apc => NULL() |
| preconditioner coefficient matrix | |
| integer(i4b), dimension(:), pointer, contiguous | lorder => NULL() |
| reordering mapping | |
| integer(i4b), dimension(:), pointer, contiguous | iorder => NULL() |
| mapping to restore reordered matrix | |
| integer(i4b), dimension(:), pointer, contiguous | iaro => NULL() |
| position of start of each row in reordered matrix | |
| integer(i4b), dimension(:), pointer, contiguous | jaro => NULL() |
| reordered matrix column pointer | |
| real(dp), dimension(:), pointer, contiguous | aro => NULL() |
| reordered coefficient matrix | |
| integer(i4b), dimension(:), pointer, contiguous | iw => NULL() |
| integer working array | |
| real(dp), dimension(:), pointer, contiguous | w => NULL() |
| real working array | |
| integer(i4b), dimension(:), pointer, contiguous | id => NULL() |
| integer working array | |
| real(dp), dimension(:), pointer, contiguous | d => NULL() |
| real working array | |
| real(dp), dimension(:), pointer, contiguous | p => NULL() |
| real working array | |
| real(dp), dimension(:), pointer, contiguous | q => NULL() |
| real working array | |
| real(dp), dimension(:), pointer, contiguous | z => NULL() |
| real working array | |
| real(dp), dimension(:), pointer, contiguous | t => NULL() |
| BICGSTAB real working array. | |
| real(dp), dimension(:), pointer, contiguous | v => NULL() |
| BICGSTAB real working array. | |
| real(dp), dimension(:), pointer, contiguous | dhat => NULL() |
| BICGSTAB real working array. | |
| real(dp), dimension(:), pointer, contiguous | phat => NULL() |
| BICGSTAB real working array. | |
| real(dp), dimension(:), pointer, contiguous | qhat => NULL() |
| rBICGSTAB eal working array | |
| integer(i4b), dimension(:), pointer, contiguous | ia0 => NULL() |
| pointer to current CRS row pointers | |
| integer(i4b), dimension(:), pointer, contiguous | ja0 => NULL() |
| pointer to current CRS column pointers | |
| real(dp), dimension(:), pointer, contiguous | a0 => NULL() |
| pointer to current coefficient matrix | |
| integer(i4b), dimension(:), pointer, contiguous | jlu => NULL() |
| ilut integer working array | |
| integer(i4b), dimension(:), pointer, contiguous | jw => NULL() |
| ilut integer working array | |
| real(dp), dimension(:), pointer, contiguous | wlu => NULL() |
| ilut real working array | |
Private Member Functions | |
| procedure, private | allocate_scalars (this) |
| Allocate and initialize scalars. | |
| procedure, private | set_imslinear_input (this, ifdparam) |
| Set default settings. | |
Definition at line 22 of file ImsLinear.f90.
|
private |
Allocate and initialize linear accelerator scalars
| [in,out] | this | ImsLinearDataType instance |
Definition at line 102 of file ImsLinear.f90.
| procedure imslinearmodule::imslineardatatype::imslinear_allocate | ( | class(imslineardatatype), intent(inout) | this, |
| character(len=lensolutionname), intent(in) | name, | ||
| integer(i4b), intent(in) | iout, | ||
| integer(i4b), intent(in), target | iprims, | ||
| integer(i4b), intent(in) | mxiter, | ||
| integer(i4b), intent(in), target | neq, | ||
| class(matrixbasetype), pointer | matrix, | ||
| real(dp), dimension(neq), intent(inout), target | rhs, | ||
| real(dp), dimension(neq), intent(inout), target | x, | ||
| type(imslinearsettingstype), pointer | linear_settings ) |
Allocate storage for linear accelerators and read data
| [in,out] | this | ImsLinearDataType instance |
| [in] | name | solution name |
| [in] | iout | simulation listing file unit |
| [in] | iprims | print option |
| [in] | mxiter | maximum outer iterations |
| [in] | neq | number of equations |
| [in,out] | rhs | right-hand side |
| [in,out] | x | dependent variables |
| linear_settings | the settings form the IMS file |
Definition at line 98 of file ImsLinear.f90.
| procedure imslinearmodule::imslineardatatype::imslinear_apply | ( | class(imslineardatatype), intent(inout) | this, |
| integer(i4b), intent(inout) | icnvg, | ||
| integer(i4b), intent(in) | kstp, | ||
| integer(i4b), intent(in) | kiter, | ||
| integer(i4b), intent(inout) | in_iter, | ||
| 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 ) |
Base linear accelerator subroutine that scales and reorders the system of equations, if necessary, updates the preconditioner, and calls the appropriate linear accelerator.
| [in,out] | this | ImsLinearDataType instance |
| [in,out] | icnvg | convergence flag (1) non-convergence (0) |
| [in] | kstp | time step number |
| [in] | kiter | outer iteration number |
| [in,out] | in_iter | inner iteration number |
| [in] | summary | Convergence summary report |
Definition at line 100 of file ImsLinear.f90.
| procedure imslinearmodule::imslineardatatype::imslinear_da | ( | class(imslineardatatype), intent(inout) | this | ) |
Deallocate linear accelerator memory.
| [in,out] | this | linear datatype instance |
Definition at line 101 of file ImsLinear.f90.
| procedure imslinearmodule::imslineardatatype::imslinear_summary | ( | class(imslineardatatype), intent(inout) | this, |
| integer(i4b), intent(in) | mxiter ) |
Write summary of linear accelerator settings.
| [in,out] | this | ImsLinearDataType instance |
| [in] | mxiter | maximum number of outer iterations |
Definition at line 99 of file ImsLinear.f90.
|
private |
Set default linear accelerator settings.
| [in,out] | this | ImsLinearDataType instance |
| [in] | ifdparam | complexity option |
Definition at line 104 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::a0 => NULL() |
Definition at line 90 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::amat => NULL() |
Definition at line 57 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::apc => NULL() |
Definition at line 67 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::aro => NULL() |
Definition at line 72 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::d => NULL() |
Definition at line 77 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::dhat => NULL() |
Definition at line 84 of file ImsLinear.f90.
| real(dp), pointer imslinearmodule::imslineardatatype::droptol => null() |
Definition at line 38 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::dscale => NULL() |
Definition at line 61 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::dscale2 => NULL() |
Definition at line 62 of file ImsLinear.f90.
| real(dp), pointer imslinearmodule::imslineardatatype::dvclose => null() |
Definition at line 27 of file ImsLinear.f90.
| real(dp), pointer imslinearmodule::imslineardatatype::epfact => NULL() |
Definition at line 46 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::hscale => NULL() |
Definition at line 64 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ia => NULL() |
Definition at line 55 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ia0 => NULL() |
Definition at line 88 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::iacpc => NULL() |
Definition at line 41 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iapc => NULL() |
Definition at line 65 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iaro => NULL() |
Definition at line 70 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::icnvgopt => null() |
Definition at line 29 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::id => NULL() |
Definition at line 76 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::ilinmeth => null() |
Definition at line 31 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::iord => null() |
Definition at line 33 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iorder => NULL() |
Definition at line 69 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::iout => NULL() |
Definition at line 24 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::ipc => NULL() |
Definition at line 40 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::iprims => NULL() |
Definition at line 25 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::iscl => null() |
Definition at line 32 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::iter1 => null() |
Definition at line 30 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iw => NULL() |
Definition at line 74 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ja => NULL() |
Definition at line 56 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ja0 => NULL() |
Definition at line 89 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::japc => NULL() |
Definition at line 66 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::jaro => NULL() |
Definition at line 71 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::jlu => NULL() |
Definition at line 92 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::jw => NULL() |
Definition at line 93 of file ImsLinear.f90.
| real(dp), pointer imslinearmodule::imslineardatatype::l2norm0 => NULL() |
Definition at line 47 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::level => null() |
Definition at line 37 of file ImsLinear.f90.
| integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::lorder => NULL() |
Definition at line 68 of file ImsLinear.f90.
| character(len=lenmempath) imslinearmodule::imslineardatatype::memorypath |
Definition at line 23 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::neq => NULL() |
Definition at line 53 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::niabcgs => NULL() |
Definition at line 43 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::niapc => NULL() |
Definition at line 44 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::niterc => NULL() |
Definition at line 42 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::nja => NULL() |
Definition at line 54 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::njapc => NULL() |
Definition at line 45 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::njlu => NULL() |
Definition at line 49 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::njw => NULL() |
Definition at line 50 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::north => null() |
Definition at line 34 of file ImsLinear.f90.
| integer(i4b), pointer imslinearmodule::imslineardatatype::nwlu => NULL() |
Definition at line 51 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::p => NULL() |
Definition at line 78 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::phat => NULL() |
Definition at line 85 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::q => NULL() |
Definition at line 79 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::qhat => NULL() |
Definition at line 86 of file ImsLinear.f90.
| real(dp), pointer imslinearmodule::imslineardatatype::rclose => null() |
Definition at line 28 of file ImsLinear.f90.
| real(dp), pointer imslinearmodule::imslineardatatype::relax => null() |
Definition at line 36 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::rhs => NULL() |
Definition at line 58 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::rscale => NULL() |
Definition at line 63 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::t => NULL() |
Definition at line 82 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::v => NULL() |
Definition at line 83 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::w => NULL() |
Definition at line 75 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::wlu => NULL() |
Definition at line 94 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::x => NULL() |
Definition at line 59 of file ImsLinear.f90.
| real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::z => NULL() |
Definition at line 80 of file ImsLinear.f90.