ESMF_CFIOEosFileClose
– close an open CFIO stream.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_CFIO), | intent(inout) | :: | cfio |
CFIO object |
||
integer, | intent(out), | optional | :: | rc |
Error return code: 0 all is well -54 error from NF90_CLOSE (file close) |
subroutine ESMF_CFIOEosFileClose (cfio, rc) ! ! !OUTPUT PARAMETERS: ! integer, intent(out), OPTIONAL :: rc !! Error return code: !! 0 all is well !! -54 error from NF90_CLOSE (file close) ! ! !INPUT/OUTPUT PARAMETERS: ! type(ESMF_CFIO), intent(inout) :: cfio !! CFIO object ! !------------------------------------------------------------------------------ integer :: rtcode if ( cfio%isOpen ) then call EOS_Close(cfio%fid, rtcode) if (rtcode .ne. 0) then print *, "CFIO_Close failed" else cfio%isOpen = .false. end if else rtcode = 0 end if if ( present(rc) ) rc = rtcode end subroutine ESMF_CFIOEosFileClose