Some utilities for working with optional arguments
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in), | optional | :: | option | ||
real(kind=real32), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in), | optional | :: | option | ||
real(kind=real64), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real128), | intent(in), | optional | :: | option | ||
real(kind=real128), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real32), | intent(in), | optional | :: | option | ||
complex(kind=real32), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real64), | intent(in), | optional | :: | option | ||
complex(kind=real64), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real128), | intent(in), | optional | :: | option | ||
complex(kind=real128), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | option | ||
integer, | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in), | optional | :: | option | ||
logical, | intent(in) | :: | default |
Returns option
if present or default
if not.
Unlike the other members of the get_option_with_default interface, we cannot mark this routine as elemental due to the allocatable return type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | optional | :: | option | ||
character(len=*), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in), | optional | :: | option | ||
real(kind=real32), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in), | optional | :: | option | ||
real(kind=real64), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real128), | intent(in), | optional | :: | option | ||
real(kind=real128), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real32), | intent(in), | optional | :: | option | ||
complex(kind=real32), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real64), | intent(in), | optional | :: | option | ||
complex(kind=real64), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real128), | intent(in), | optional | :: | option | ||
complex(kind=real128), | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | option | ||
integer, | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in), | optional | :: | option | ||
logical, | intent(in) | :: | default |
Returns option
if present or default
if not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | optional | :: | option | ||
character(len=*), | intent(in) | :: | default |