optval Interface

public interface optval

Module Procedures

public function optval_integer(val, default)

Set a value to a default if it is not defined

Arguments

Type IntentOptional Attributes Name
integer, intent(inout), optional :: val
integer, intent(in) :: default

Return Value integer

public function optval_real(val, default)

Set a value to a default if it is not defined

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(inout), optional :: val
real(kind=pr), intent(in) :: default

Return Value real(kind=pr)