close the ascii output unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(hvs_ascii_type), | intent(inout) | :: | ascii |
ascii output |
subroutine hvs_ascii_close(ascii) ! --------------------------------------------------------------------------- !> ascii output type(hvs_ascii_type ), intent(inout) :: ascii ! --------------------------------------------------------------------------- !local variable logical :: nUnitOpened ! --------------------------------------------------------------------------- ! check output unit is open if ( ascii%outunit >=0 ) then inquire( unit = ascii%outunit, opened = nUnitOpened ) if ( nUnitOpened ) close( ascii%outunit ) end if end subroutine hvs_ascii_close