ESMF_CFIOGridCreate
– ESMF_Grid object constructor
Create a CFIO grid object and initialize vars
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | optional | :: | gName |
grid object name |
|
integer, | intent(out), | optional | :: | rc |
Error return code: |
type(ESMF_CFIOGrid) function ESMF_CFIOGridCreate (gName, rc) ! ! !INPUT PARAMETERS: ! character(len=*), intent(in), OPTIONAL :: gName !! grid object name integer, intent(out), OPTIONAL :: rc !! Error return code: !! 0 all is well ! !------------------------------------------------------------------------------ type(ESMF_CFIOGrid) :: grid ! a CFIO grid object grid%im = 0 grid%jm = 0 grid%km = 0 grid%tm = 0 grid%levUnits = 'unknown' grid%coordinate = 'unknown' grid%standardName = 'unknown' grid%formulaTerm = 'unknown' grid%ptop = 0 grid%ptopUnit = 'Pa' grid%twoDimLat = .false. grid%reduceGrid = .false. grid%stnGrid = .false. nullify(grid%lon) nullify(grid%lat) nullify(grid%lev) nullify(grid%ak) nullify(grid%bk) nullify(grid%sigma) if ( present(gName) ) grid%gName = gName if ( present(rc) ) rc = 0 ESMF_CFIOGridCreate = grid end function ESMF_CFIOGridCreate