ESMF_CFIOVarInfoCreate
– ESMF_CFIOVarInfo object constructor
Create a CFIO varInfo object and initialize variables.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | optional | :: | vName |
variable name |
|
integer, | intent(out), | optional | :: | rc |
Error return code: |
type(ESMF_CFIOVarInfo) function ESMF_CFIOVarInfoCreate (vName, rc) ! ! !INPUT PARAMETERS: ! character(len=*), intent(in), OPTIONAL :: vName !! variable name ! ! !OUTPUT PARAMETERS: ! integer, intent(out), OPTIONAL :: rc !! Error return code: !! 0 all is well !! -1 problem in creating Grid ! !------------------------------------------------------------------------------ type(ESMF_CFIOVarInfo) :: varObj ! a CFIO grid object integer :: rtcode = 0 _UNUSED_DUMMY(vName) varObj%grid = ESMF_CFIOGridCreate(rc=rtcode) if (rtcode .ne. 0) then print *, "problem in getting ESMF_CFIOGridCreate:lon" rtcode = -1 if ( present(rc) ) rc = rtcode return end if varObj%nVarAttInt = 0 varObj%nVarAttChar = 0 varObj%nVarAttReal = 0 varObj%twoDimVar = .false. varObj%timAve = .false. varObj%isGridSet = .false. varObj%aveMethod = 'c' varObj%cellMthd = 'mean' varObj%amiss = 1.E15 varObj%addOffSet = 0 varObj%scaleFactor = 1 varObj%validRange = 1.E15 varObj%packingRange = 1.E15 varObj%ordering = 'tzyx' varObj%vTitle = 'unknown' varObj%vUnits = 'unknown' varObj%standardName = 'unknown' ! allocate(varObj%iList, varObj%rList, varObj%cList) nullify(varObj%iList) nullify(varObj%rList) nullify(varObj%cList) if ( present(rc) ) rc = 0 ESMF_CFIOVarInfoCreate = varObj end function ESMF_CFIOVarInfoCreate