Conjugate gradient metadata.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | converged | = | .false. |
Convergence flag |
|
integer, | public | :: | info | = | 0 |
Copy of the information flag for completeness |
|
integer, | public | :: | n_iter | = | 0 |
Iteration counter |
|
real(kind=dp), | public, | dimension(:), allocatable | :: | res |
Residual history |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cg_dp_metadata), | intent(inout) | :: | self | |||
logical, | intent(in), | optional | :: | reset_counters |
Reset all counters to zero after printing? |
|
logical, | intent(in), | optional | :: | verbose |
Print the residual full residual history? |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cg_dp_metadata), | intent(inout) | :: | self |
type, extends(abstract_metadata), public :: cg_dp_metadata !! Conjugate gradient metadata. integer :: n_iter = 0 !! Iteration counter real(dp), dimension(:), allocatable :: res !! Residual history logical :: converged = .false. !! Convergence flag integer :: info = 0 !! Copy of the information flag for completeness contains procedure, pass(self), public :: print => print_cg_dp procedure, pass(self), public :: reset => reset_cg_dp end type cg_dp_metadata