m_config Module

Contains all the namelist configurations used in x3d2


Uses

  • module~~m_config~~UsesGraph module~m_config m_config iso_fortran_env iso_fortran_env module~m_config->iso_fortran_env module~m_common m_common module~m_config->module~m_common

Used by

  • module~~m_config~~UsedByGraph module~m_config m_config module~m_case_channel m_case_channel module~m_case_channel->module~m_config module~m_solver m_solver module~m_case_channel->module~m_solver module~m_base_case m_base_case module~m_case_channel->module~m_base_case module~m_solver->module~m_config program~xcompact xcompact program~xcompact->module~m_config program~xcompact->module~m_case_channel program~xcompact->module~m_base_case module~m_case_generic m_case_generic program~xcompact->module~m_case_generic module~m_case_tgv m_case_tgv program~xcompact->module~m_case_tgv module~m_base_case->module~m_solver module~m_case_generic->module~m_solver module~m_case_generic->module~m_base_case module~m_case_tgv->module~m_solver module~m_case_tgv->module~m_base_case

Abstract Interfaces

abstract interface

  • public subroutine read(self, nml_file, nml_string)

    Assigns the member variables either from a file or text source.

    nml_file can be an absolute or relative path nml_string is a character string that contains the namelist. For example, nml_string="&foobar_nml foo=0, bar='this'/"

    Arguments

    Type IntentOptional Attributes Name
    class(base_config_t) :: self
    character(len=*), intent(in), optional :: nml_file
    character(len=*), intent(in), optional :: nml_string

Derived Types

type, public, abstract ::  base_config_t

All config types have a method read to initialise their data

Type-Bound Procedures

procedure(read), public, deferred :: read

type, public, extends(base_config_t) ::  domain_config_t

Components

Type Visibility Attributes Name Initial
character(len=30), public :: flow_case_name
real(kind=dp), public :: L_global(3)
integer, public :: dims_global(3)
integer, public :: nproc_dir(3)
character(len=20), public :: BC_x(2)
character(len=20), public :: BC_y(2)
character(len=20), public :: BC_z(2)
character(len=20), public :: stretching(3)
real(kind=dp), public :: beta(3)

Type-Bound Procedures

procedure, public :: read => read_domain_nml

type, public, extends(base_config_t) ::  solver_config_t

Components

Type Visibility Attributes Name Initial
real(kind=dp), public :: Re
real(kind=dp), public :: dt
integer, public :: n_iters
integer, public :: n_output
character(len=3), public :: poisson_solver_type
character(len=3), public :: time_intg
character(len=30), public :: der1st_scheme
character(len=30), public :: der2nd_scheme
character(len=30), public :: interpl_scheme
character(len=30), public :: stagder_scheme

Type-Bound Procedures

procedure, public :: read => read_solver_nml

type, public, extends(base_config_t) ::  channel_config_t

Components

Type Visibility Attributes Name Initial
real(kind=dp), public :: noise
real(kind=dp), public :: omega_rot
logical, public :: rotation
integer, public :: n_rotate

Type-Bound Procedures

procedure, public :: read => read_channel_nml

Subroutines

public subroutine read_domain_nml(self, nml_file, nml_string)

Arguments

Type IntentOptional Attributes Name
class(domain_config_t) :: self
character(len=*), intent(in), optional :: nml_file
character(len=*), intent(in), optional :: nml_string

public subroutine read_solver_nml(self, nml_file, nml_string)

Arguments

Type IntentOptional Attributes Name
class(solver_config_t) :: self
character(len=*), intent(in), optional :: nml_file
character(len=*), intent(in), optional :: nml_string

public subroutine read_channel_nml(self, nml_file, nml_string)

Arguments

Type IntentOptional Attributes Name
class(channel_config_t) :: self
character(len=*), intent(in), optional :: nml_file
character(len=*), intent(in), optional :: nml_string