iv_settings_t Derived Type

type, public :: iv_settings_t


Components

Type Visibility Attributes Name Initial
logical, public :: enabled
integer, public :: snapshot_stride
real(kind=dp), public :: t_end
integer, public :: n_steps
real(kind=dp), public :: alpha

Type-Bound Procedures

procedure, public :: get_step_size

  • private pure function get_step_size(self)

    Arguments

    Type IntentOptional Attributes Name
    class(iv_settings_t), intent(in) :: self

    Return Value real(kind=dp)

procedure, public :: get_n_snapshots

  • private pure function get_n_snapshots(self)

    Number of stored snapshots: the initial condition, every snapshot_stride-th step before the last one, and the final step.

    Arguments

    Type IntentOptional Attributes Name
    class(iv_settings_t), intent(in) :: self

    Return Value integer

procedure, public :: set_stride_from_n_snapshots

  • private subroutine set_stride_from_n_snapshots(self, n_snaps)

    Sets the snapshot stride such that at most n_snaps snapshots are stored (including the initial condition and the final step).

    Arguments

    Type IntentOptional Attributes Name
    class(iv_settings_t), intent(inout) :: self
    integer, intent(in) :: n_snaps

procedure, public :: validate

  • private subroutine validate(self)

    Checks the IV settings for consistency, raises an error if invalid.

    Arguments

    Type IntentOptional Attributes Name
    class(iv_settings_t), intent(in) :: self