mod_settings Module



Contents


Derived Types

type, public :: settings_t

Components

TypeVisibilityAttributesNameInitial
character(len=str_len_arr), private, allocatable:: state_vector(:)
character(len=str_len_arr), private, allocatable:: derived_state_vector(:)
character(len=:), private, allocatable:: physics_type
logical, private :: state_vector_has_bfield
integer, private :: nb_eqs
type(dims_t), public :: dims
type(io_settings_t), public :: io
type(solver_settings_t), public :: solvers
type(physics_settings_t), public :: physics
type(grid_settings_t), public :: grid
type(equilibrium_settings_t), public :: equilibrium
type(units_t), public :: units

Type-Bound Procedures

procedure, public :: set_state_vector
procedure, public :: get_state_vector
procedure, public :: state_vector_is_set
procedure, public :: set_derived_state_vector
procedure, public :: get_derived_state_vector
procedure, public :: derived_state_vector_is_set
procedure, public :: get_physics_type
procedure, public :: get_nb_eqs
procedure, public :: update_block_dimensions
procedure, public :: has_bfield
procedure, public :: delete
procedure, private :: set_nb_eqs
procedure, private :: check_bfield

Functions

public function new_settings() result(settings)

Arguments

None

Return Value type(settings_t)

private pure function get_state_vector(this) result(state_vector)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(in) :: this

Return Value character(len=:),allocatable, (:)

private pure function state_vector_is_set(this)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(in) :: this

Return Value logical

private pure function get_derived_state_vector(this) result(derived_state_vector)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(in) :: this

Return Value character(len=:),allocatable, (:)

private pure function derived_state_vector_is_set(this)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(in) :: this

Return Value logical

private pure function get_physics_type(this) result(physics_type)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(in) :: this

Return Value character(len=:),allocatable

private pure function get_nb_eqs(this)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(in) :: this

Return Value integer

private pure function has_bfield(this)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(in) :: this

Return Value logical


Subroutines

private pure subroutine set_state_vector(this, physics_type)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(inout) :: this
character(len=*), intent(in) :: physics_type

private pure subroutine set_derived_state_vector(this, derived_state_vector)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(inout) :: this
character(len=*), intent(in) :: derived_state_vector(:)

private pure subroutine set_nb_eqs(this, nb_eqs)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(inout) :: this
integer, intent(in) :: nb_eqs

private pure subroutine update_block_dimensions(this)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(inout) :: this

private pure subroutine check_bfield(this)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(inout) :: this

private pure subroutine delete(this)

Arguments

TypeIntentOptionalAttributesName
class(settings_t), intent(inout) :: this