cg_sp_metadata Derived Type

type, public, extends(abstract_metadata) :: cg_sp_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=sp), public, dimension(:), allocatable :: res

Residual history


Type-Bound Procedures

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

  • interface

    private module subroutine print_cg_sp(self, reset_counters, verbose)

    Arguments

    Type IntentOptional Attributes Name
    class(cg_sp_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_sp

  • interface

    private module subroutine reset_cg_sp(self)

    Arguments

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