dm_arg_get Interface

public interface dm_arg_get

Returns argument value.


Module Procedures

private subroutine arg_get_int32(arg, value, default, passed, error)

Returns argument value as 4-byte integer.

Arguments

Type IntentOptional Attributes Name
type(arg_type), intent(inout) :: arg

Arg type.

integer, intent(inout) :: value

Argument value.

integer, intent(in), optional :: default

Default value.

logical, intent(out), optional :: passed

Passed or not.

integer, intent(out), optional :: error

Argument error.

private subroutine arg_get_logical(arg, value, default, passed, error)

Returns .true. if argument has been passed.

Arguments

Type IntentOptional Attributes Name
type(arg_type), intent(inout) :: arg

Arg type.

logical, intent(inout) :: value

Argument value.

logical, intent(in), optional :: default

Default value.

logical, intent(out), optional :: passed

Passed or not.

integer, intent(out), optional :: error

Argument error.

private subroutine arg_get_real64(arg, value, default, passed, error)

Returns argument value as 8-byte real.

Arguments

Type IntentOptional Attributes Name
type(arg_type), intent(inout) :: arg

Arg type.

real(kind=r8), intent(inout) :: value

Argument value.

real(kind=r8), intent(in), optional :: default

Default value.

logical, intent(out), optional :: passed

Passed or not.

integer, intent(out), optional :: error

Argument error.

private subroutine arg_get_string(arg, value, default, passed, error)

Returns argument value as character string.

Arguments

Type IntentOptional Attributes Name
type(arg_type), intent(inout) :: arg

Arg type.

character(len=*), intent(inout) :: value

Argument value.

character(len=*), intent(in), optional :: default

Default value.

logical, intent(out), optional :: passed

Passed or not.

integer, intent(out), optional :: error

Argument error.