libsim Versione 7.2.6

◆ soptio_b()

elemental subroutine soptio_b ( integer(kind=int_b), intent(in), optional var,
integer(kind=int_b), intent(out) optio_b )

Set the output value to input, if input is present, otherwise set it to missing value.

Parametri
[in]varvariable to be checked
[out]optio_bequal to var if present, otherwise equal to the corresponding missing value

Definizione alla linea 155 del file optional_values.f90.

156INTEGER(kind=int_b),INTENT(in),OPTIONAL :: var !< variable to be checked
157INTEGER(kind=int_b),INTENT(out) :: optio_b !< equal to \a var if present, otherwise equal to the corresponding missing value
158
159if (present(var))then
160 optio_b=var
161else
162 optio_b=ibmiss
163end if
164

Generated with Doxygen.