MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
imslinearmodule::imslineardatatype Type Reference
Collaboration diagram for imslinearmodule::imslineardatatype:
Collaboration graph

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.

Detailed Description

Definition at line 22 of file ImsLinear.f90.

Member Function/Subroutine Documentation

◆ allocate_scalars()

procedure, private imslinearmodule::imslineardatatype::allocate_scalars ( class(imslineardatatype), intent(inout) this)
private

Allocate and initialize linear accelerator scalars

Parameters
[in,out]thisImsLinearDataType instance

Definition at line 102 of file ImsLinear.f90.

◆ imslinear_allocate()

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

Parameters
[in,out]thisImsLinearDataType instance
[in]namesolution name
[in]ioutsimulation listing file unit
[in]iprimsprint option
[in]mxitermaximum outer iterations
[in]neqnumber of equations
[in,out]rhsright-hand side
[in,out]xdependent variables
linear_settingsthe settings form the IMS file

Definition at line 98 of file ImsLinear.f90.

◆ imslinear_apply()

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.

Parameters
[in,out]thisImsLinearDataType instance
[in,out]icnvgconvergence flag (1) non-convergence (0)
[in]kstptime step number
[in]kiterouter iteration number
[in,out]in_iterinner iteration number
[in]summaryConvergence summary report

Definition at line 100 of file ImsLinear.f90.

◆ imslinear_da()

procedure imslinearmodule::imslineardatatype::imslinear_da ( class(imslineardatatype), intent(inout) this)

Deallocate linear accelerator memory.

Parameters
[in,out]thislinear datatype instance

Definition at line 101 of file ImsLinear.f90.

◆ imslinear_summary()

procedure imslinearmodule::imslineardatatype::imslinear_summary ( class(imslineardatatype), intent(inout) this,
integer(i4b), intent(in) mxiter )

Write summary of linear accelerator settings.

Parameters
[in,out]thisImsLinearDataType instance
[in]mxitermaximum number of outer iterations

Definition at line 99 of file ImsLinear.f90.

◆ set_imslinear_input()

procedure, private imslinearmodule::imslineardatatype::set_imslinear_input ( class(imslineardatatype), intent(inout) this,
integer(i4b), intent(in) ifdparam )
private

Set default linear accelerator settings.

Parameters
[in,out]thisImsLinearDataType instance
[in]ifdparamcomplexity option

Definition at line 104 of file ImsLinear.f90.

Member Data Documentation

◆ a0

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::a0 => NULL()

Definition at line 90 of file ImsLinear.f90.

◆ amat

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::amat => NULL()

Definition at line 57 of file ImsLinear.f90.

◆ apc

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::apc => NULL()

Definition at line 67 of file ImsLinear.f90.

◆ aro

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::aro => NULL()

Definition at line 72 of file ImsLinear.f90.

◆ d

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::d => NULL()

Definition at line 77 of file ImsLinear.f90.

◆ dhat

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::dhat => NULL()

Definition at line 84 of file ImsLinear.f90.

◆ droptol

real(dp), pointer imslinearmodule::imslineardatatype::droptol => null()

Definition at line 38 of file ImsLinear.f90.

◆ dscale

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::dscale => NULL()

Definition at line 61 of file ImsLinear.f90.

◆ dscale2

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::dscale2 => NULL()

Definition at line 62 of file ImsLinear.f90.

◆ dvclose

real(dp), pointer imslinearmodule::imslineardatatype::dvclose => null()

Definition at line 27 of file ImsLinear.f90.

◆ epfact

real(dp), pointer imslinearmodule::imslineardatatype::epfact => NULL()

Definition at line 46 of file ImsLinear.f90.

◆ hscale

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::hscale => NULL()

Definition at line 64 of file ImsLinear.f90.

◆ ia

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ia => NULL()

Definition at line 55 of file ImsLinear.f90.

◆ ia0

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ia0 => NULL()

Definition at line 88 of file ImsLinear.f90.

◆ iacpc

integer(i4b), pointer imslinearmodule::imslineardatatype::iacpc => NULL()

Definition at line 41 of file ImsLinear.f90.

◆ iapc

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iapc => NULL()

Definition at line 65 of file ImsLinear.f90.

◆ iaro

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iaro => NULL()

Definition at line 70 of file ImsLinear.f90.

◆ icnvgopt

integer(i4b), pointer imslinearmodule::imslineardatatype::icnvgopt => null()

Definition at line 29 of file ImsLinear.f90.

◆ id

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::id => NULL()

Definition at line 76 of file ImsLinear.f90.

◆ ilinmeth

integer(i4b), pointer imslinearmodule::imslineardatatype::ilinmeth => null()

Definition at line 31 of file ImsLinear.f90.

◆ iord

integer(i4b), pointer imslinearmodule::imslineardatatype::iord => null()

Definition at line 33 of file ImsLinear.f90.

◆ iorder

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iorder => NULL()

Definition at line 69 of file ImsLinear.f90.

◆ iout

integer(i4b), pointer imslinearmodule::imslineardatatype::iout => NULL()

Definition at line 24 of file ImsLinear.f90.

◆ ipc

integer(i4b), pointer imslinearmodule::imslineardatatype::ipc => NULL()

Definition at line 40 of file ImsLinear.f90.

◆ iprims

integer(i4b), pointer imslinearmodule::imslineardatatype::iprims => NULL()

Definition at line 25 of file ImsLinear.f90.

◆ iscl

integer(i4b), pointer imslinearmodule::imslineardatatype::iscl => null()

Definition at line 32 of file ImsLinear.f90.

◆ iter1

integer(i4b), pointer imslinearmodule::imslineardatatype::iter1 => null()

Definition at line 30 of file ImsLinear.f90.

◆ iw

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::iw => NULL()

Definition at line 74 of file ImsLinear.f90.

◆ ja

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ja => NULL()

Definition at line 56 of file ImsLinear.f90.

◆ ja0

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::ja0 => NULL()

Definition at line 89 of file ImsLinear.f90.

◆ japc

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::japc => NULL()

Definition at line 66 of file ImsLinear.f90.

◆ jaro

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::jaro => NULL()

Definition at line 71 of file ImsLinear.f90.

◆ jlu

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::jlu => NULL()

Definition at line 92 of file ImsLinear.f90.

◆ jw

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::jw => NULL()

Definition at line 93 of file ImsLinear.f90.

◆ l2norm0

real(dp), pointer imslinearmodule::imslineardatatype::l2norm0 => NULL()

Definition at line 47 of file ImsLinear.f90.

◆ level

integer(i4b), pointer imslinearmodule::imslineardatatype::level => null()

Definition at line 37 of file ImsLinear.f90.

◆ lorder

integer(i4b), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::lorder => NULL()

Definition at line 68 of file ImsLinear.f90.

◆ memorypath

character(len=lenmempath) imslinearmodule::imslineardatatype::memorypath

Definition at line 23 of file ImsLinear.f90.

23 character(len=LENMEMPATH) :: memoryPath !< the path for storing variables in the memory manager

◆ neq

integer(i4b), pointer imslinearmodule::imslineardatatype::neq => NULL()

Definition at line 53 of file ImsLinear.f90.

◆ niabcgs

integer(i4b), pointer imslinearmodule::imslineardatatype::niabcgs => NULL()

Definition at line 43 of file ImsLinear.f90.

◆ niapc

integer(i4b), pointer imslinearmodule::imslineardatatype::niapc => NULL()

Definition at line 44 of file ImsLinear.f90.

◆ niterc

integer(i4b), pointer imslinearmodule::imslineardatatype::niterc => NULL()

Definition at line 42 of file ImsLinear.f90.

◆ nja

integer(i4b), pointer imslinearmodule::imslineardatatype::nja => NULL()

Definition at line 54 of file ImsLinear.f90.

◆ njapc

integer(i4b), pointer imslinearmodule::imslineardatatype::njapc => NULL()

Definition at line 45 of file ImsLinear.f90.

◆ njlu

integer(i4b), pointer imslinearmodule::imslineardatatype::njlu => NULL()

Definition at line 49 of file ImsLinear.f90.

◆ njw

integer(i4b), pointer imslinearmodule::imslineardatatype::njw => NULL()

Definition at line 50 of file ImsLinear.f90.

◆ north

integer(i4b), pointer imslinearmodule::imslineardatatype::north => null()

Definition at line 34 of file ImsLinear.f90.

◆ nwlu

integer(i4b), pointer imslinearmodule::imslineardatatype::nwlu => NULL()

Definition at line 51 of file ImsLinear.f90.

◆ p

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::p => NULL()

Definition at line 78 of file ImsLinear.f90.

◆ phat

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::phat => NULL()

Definition at line 85 of file ImsLinear.f90.

◆ q

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::q => NULL()

Definition at line 79 of file ImsLinear.f90.

◆ qhat

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::qhat => NULL()

Definition at line 86 of file ImsLinear.f90.

◆ rclose

real(dp), pointer imslinearmodule::imslineardatatype::rclose => null()

Definition at line 28 of file ImsLinear.f90.

◆ relax

real(dp), pointer imslinearmodule::imslineardatatype::relax => null()

Definition at line 36 of file ImsLinear.f90.

◆ rhs

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::rhs => NULL()

Definition at line 58 of file ImsLinear.f90.

◆ rscale

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::rscale => NULL()

Definition at line 63 of file ImsLinear.f90.

◆ t

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::t => NULL()

Definition at line 82 of file ImsLinear.f90.

◆ v

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::v => NULL()

Definition at line 83 of file ImsLinear.f90.

◆ w

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::w => NULL()

Definition at line 75 of file ImsLinear.f90.

◆ wlu

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::wlu => NULL()

Definition at line 94 of file ImsLinear.f90.

◆ x

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::x => NULL()

Definition at line 59 of file ImsLinear.f90.

◆ z

real(dp), dimension(:), pointer, contiguous imslinearmodule::imslineardatatype::z => NULL()

Definition at line 80 of file ImsLinear.f90.


The documentation for this type was generated from the following file:
  • /home/runner/work/modflow6/modflow6/src/Solution/LinearMethods/ImsLinear.f90