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