tem_getOptValOrDef Interface

public interface tem_getOptValOrDef

Module Procedures

private function tem_getoptvalordef_logical(value, default) result(res)

returns the optional value, if present, or the default.

Read more…

Arguments

Type IntentOptional Attributes Name
logical, optional :: value

the optional value to check for

logical :: default

the default to use when the optional value is not present.

Return Value logical

the result

private function tem_getoptvalordef_int(value, default) result(res)

returns the optional value, if present, or the default.

Read more…

Arguments

Type IntentOptional Attributes Name
integer, optional :: value

the optional value to check for

integer :: default

the default to use when the optional value is not present.

Return Value integer

the result

private function tem_getoptvalordef_long(value, default) result(res)

returns the optional value, if present, or the default.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=long_k), optional :: value

the optional value to check for

integer(kind=long_k) :: default

the default to use when the optional value is not present.

Return Value integer(kind=long_k)

the result

private function tem_getoptvalordef_real(value, default) result(res)

returns the optional value, if present, or the default.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=rk), optional :: value

the optional value to check for

real(kind=rk) :: default

the default to use when the optional value is not present.

Return Value real(kind=rk)

the result

private function tem_getoptvalordef_char(value, default) result(res)

returns the optional value, if present, or the default.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=1), optional :: value

the optional value to check for

character(len=1) :: default

the default to use when the optional value is not present.

Return Value character(len=1)

the result