|
| procedure | initialize (this, matrix, linear_settings, convergence_summary) |
| | Initialize PETSc KSP solver with.
|
| procedure | solve (this, kiter, rhs, x, cnvg_summary) |
| procedure | print_summary (this) |
| procedure | destroy (this) |
| procedure | create_matrix (this) |
| procedure(initialize_if), deferred | initialize (this, matrix, linear_settings, convergence_summary) |
| procedure(print_summary_if), deferred | print_summary (this) |
| procedure(solve_if), deferred | solve (this, kiter, rhs, x, cnvg_summary) |
| procedure(destroy_if), deferred | destroy (this) |
| procedure(create_matrix_if), deferred | create_matrix (this) |
|
| type(tksp) | ksp_petsc |
| | the KSP linear solver object
|
| class(petscmatrixtype), pointer | matrix => null() |
| | the system matrix in PETSc compatible format
|
| type(tmat), pointer | mat_petsc => null() |
| | the PETSc internal matrix format
|
| type(imslinearsettingstype), pointer | linear_settings => null() |
| | pointer to linear settings from IMS
|
| logical(lgp) | use_ims_pc |
| | when true, use custom IMS-style preconditioning
|
| logical(lgp) | use_ims_cnvgopt |
| | when true, use IMS convergence check in PETSc solve
|
| character(len=256) | ksp_type |
| | the KSP solver type (CG, BCGS, ...)
|
| class(petsccnvgctxtype), pointer | petsc_ctx => null() |
| | context for the PETSc custom convergence check
|
| type(pcshellctxtype), pointer | pc_context => null() |
| | context for the custom (IMS) precondioner
|
| type(convergencesummarytype), pointer | convergence_summary => null() |
| | data structure wrapping the convergence data
|
| character(len=lensolutionname+1) | option_prefix |
| | prefix for keys in petscrc database in case there are multiple solutions
|
| character(len=lensolutionname) | name |
| integer(i4b) | nitermax |
| integer(i4b) | iteration_number |
| integer(i4b) | is_converged |
|
| procedure, private | petsc_check_settings (this, linear_settings) |
| procedure, private | get_options_mf6 (this) |
| | Get the MODFLOW specific options from the PETSc database.
|
| procedure, private | create_ksp (this) |
| | Create the PETSc KSP object.
|
| procedure, private | create_convergence_check (this, convergence_summary) |
| | Create and assign a custom convergence.
|
| procedure, private | set_ims_pc (this) |
| | Set up a custom preconditioner following the ones.
|
| procedure, private | print_vec (this, vec, vec_name, kiter) |
| procedure, private | print_petsc_version (this) |
| | Print PETSc version string from shared lib.
|
Definition at line 26 of file PetscSolver.F90.
◆ create_convergence_check()
◆ create_ksp()
| procedure, private petscsolvermodule::petscsolvertype::create_ksp |
( |
class(petscsolvertype) | this | ) |
|
|
private |
◆ create_matrix() [1/2]
◆ create_matrix() [2/2]
| procedure petscsolvermodule::petscsolvertype::create_matrix |
( |
class(petscsolvertype) | this | ) |
|
◆ destroy() [1/2]
◆ destroy() [2/2]
| procedure petscsolvermodule::petscsolvertype::destroy |
( |
class(petscsolvertype) | this | ) |
|
◆ get_options_mf6()
| procedure, private petscsolvermodule::petscsolvertype::get_options_mf6 |
( |
class(petscsolvertype) | this | ) |
|
|
private |
◆ initialize() [1/2]
◆ initialize() [2/2]
- Parameters
-
| this | This solver instance |
| matrix | The solution matrix as KSP operator |
| linear_settings | the settings for the linear solver from the .ims file |
| convergence_summary | a convergence record for diagnostics |
Definition at line 40 of file PetscSolver.F90.
◆ petsc_check_settings()
◆ print_petsc_version()
| procedure, private petscsolvermodule::petscsolvertype::print_petsc_version |
( |
class(petscsolvertype) | this | ) |
|
|
private |
◆ print_summary() [1/2]
◆ print_summary() [2/2]
| procedure petscsolvermodule::petscsolvertype::print_summary |
( |
class(petscsolvertype) | this | ) |
|
◆ print_vec()
| procedure, private petscsolvermodule::petscsolvertype::print_vec |
( |
class(petscsolvertype) | this, |
|
|
class(petscvectortype) | vec, |
|
|
character(len=*) | vec_name, |
|
|
integer(i4b) | kiter ) |
|
private |
◆ set_ims_pc()
| procedure, private petscsolvermodule::petscsolvertype::set_ims_pc |
( |
class(petscsolvertype) | this | ) |
|
|
private |
◆ solve() [1/2]
◆ solve() [2/2]
◆ convergence_summary
◆ is_converged
| integer(i4b) linearsolverbasemodule::linearsolverbasetype::is_converged |
|
inherited |
◆ iteration_number
| integer(i4b) linearsolverbasemodule::linearsolverbasetype::iteration_number |
|
inherited |
◆ ksp_petsc
| type(tksp) petscsolvermodule::petscsolvertype::ksp_petsc |
◆ ksp_type
| character(len=256) petscsolvermodule::petscsolvertype::ksp_type |
◆ linear_settings
◆ mat_petsc
| type(tmat), pointer petscsolvermodule::petscsolvertype::mat_petsc => null() |
◆ matrix
| class(petscmatrixtype), pointer petscsolvermodule::petscsolvertype::matrix => null() |
◆ name
| character(len=lensolutionname) linearsolverbasemodule::linearsolverbasetype::name |
|
inherited |
◆ nitermax
| integer(i4b) linearsolverbasemodule::linearsolverbasetype::nitermax |
|
inherited |
◆ option_prefix
| character(len=lensolutionname + 1) petscsolvermodule::petscsolvertype::option_prefix |
Definition at line 38 of file PetscSolver.F90.
38 character(len=LENSOLUTIONNAME + 1) :: option_prefix
◆ pc_context
| type(pcshellctxtype), pointer petscsolvermodule::petscsolvertype::pc_context => null() |
◆ petsc_ctx
| class(petsccnvgctxtype), pointer petscsolvermodule::petscsolvertype::petsc_ctx => null() |
◆ use_ims_cnvgopt
| logical(lgp) petscsolvermodule::petscsolvertype::use_ims_cnvgopt |
◆ use_ims_pc
| logical(lgp) petscsolvermodule::petscsolvertype::use_ims_pc |
The documentation for this type was generated from the following file: