cg_dp_metadata Derived Type

type, public, extends(abstract_metadata) :: cg_dp_metadata

Conjugate gradient metadata.


Components

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-Bound Procedures

procedure, public, pass(self) :: print => print_cg_dp

  • interface

    private module subroutine print_cg_dp(self, reset_counters, verbose)

    Arguments

    Type IntentOptional 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?

procedure, public, pass(self) :: reset => reset_cg_dp

  • interface

    private module subroutine reset_cg_dp(self)

    Arguments

    Type IntentOptional Attributes Name
    class(cg_dp_metadata), intent(inout) :: self