mod_iv_settings Module



Derived Types

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
procedure, public :: get_n_snapshots
procedure, public :: set_stride_from_n_snapshots
procedure, public :: validate

Functions

public function new_iv_settings() result(iv_settings)

Arguments

None

Return Value type(iv_settings_t)

private pure function get_step_size(self)

Arguments

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

Return Value real(kind=dp)

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


Subroutines

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

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