ESMF_InfoRemove Subroutine

public subroutine ESMF_InfoRemove(info, keyParent, keywordEnforcer, keyChild, attnestflag, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_Info), intent(inout) :: info
character(len=*), intent(in) :: keyParent
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
character(len=*), intent(in), optional :: keyChild
type(ESMF_AttNest_Flag), intent(in), optional :: attnestflag
integer, intent(out), optional :: rc

Calls

proc~~esmf_inforemove~~CallsGraph proc~esmf_inforemove ESMF_InfoRemove interface~c_info_erase c_info_erase proc~esmf_inforemove->interface~c_info_erase proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_inforemove->proc~esmf_logfounderror esmf_breakpoint esmf_breakpoint proc~esmf_logfounderror->esmf_breakpoint proc~esmf_logrc2msg ESMF_LogRc2Msg proc~esmf_logfounderror->proc~esmf_logrc2msg proc~esmf_logwrite ESMF_LogWrite proc~esmf_logfounderror->proc~esmf_logwrite c_esmc_loggeterrormsg c_esmc_loggeterrormsg proc~esmf_logrc2msg->c_esmc_loggeterrormsg c_esmc_vmwtime c_esmc_vmwtime proc~esmf_logwrite->c_esmc_vmwtime proc~esmf_logclose ESMF_LogClose proc~esmf_logwrite->proc~esmf_logclose proc~esmf_logflush ESMF_LogFlush proc~esmf_logwrite->proc~esmf_logflush proc~esmf_logopenfile ESMF_LogOpenFile proc~esmf_logwrite->proc~esmf_logopenfile proc~esmf_utiliounitflush ESMF_UtilIOUnitFlush proc~esmf_logwrite->proc~esmf_utiliounitflush proc~esmf_utilstring2array ESMF_UtilString2Array proc~esmf_logwrite->proc~esmf_utilstring2array proc~esmf_logclose->proc~esmf_logflush proc~esmf_logflush->proc~esmf_utiliounitflush proc~esmf_utilarray2string ESMF_UtilArray2String proc~esmf_logflush->proc~esmf_utilarray2string proc~esmf_logopenfile->proc~esmf_utiliounitflush proc~esmf_utiliounitget ESMF_UtilIOUnitGet proc~esmf_logopenfile->proc~esmf_utiliounitget

Called by

proc~~esmf_inforemove~~CalledByGraph proc~esmf_inforemove ESMF_InfoRemove proc~esmf_attributeaddattpackstdinfo ESMF_AttributeAddAttPackStdInfo proc~esmf_attributeaddattpackstdinfo->proc~esmf_inforemove proc~esmf_attributeremoveattpackarray ESMF_AttributeRemoveAttPackArray proc~esmf_attributeremoveattpackarray->proc~esmf_inforemove proc~esmf_attributeremoveattpackarraybundle ESMF_AttributeRemoveAttPackArrayBundle proc~esmf_attributeremoveattpackarraybundle->proc~esmf_inforemove proc~esmf_attributeremoveattpackcplcomp ESMF_AttributeRemoveAttPackCplComp proc~esmf_attributeremoveattpackcplcomp->proc~esmf_inforemove proc~esmf_attributeremoveattpackdistgrid ESMF_AttributeRemoveAttPackDistGrid proc~esmf_attributeremoveattpackdistgrid->proc~esmf_inforemove proc~esmf_attributeremoveattpackfield ESMF_AttributeRemoveAttPackField proc~esmf_attributeremoveattpackfield->proc~esmf_inforemove proc~esmf_attributeremoveattpackfieldbundle ESMF_AttributeRemoveAttPackFieldBundle proc~esmf_attributeremoveattpackfieldbundle->proc~esmf_inforemove proc~esmf_attributeremoveattpackgrid ESMF_AttributeRemoveAttPackGrid proc~esmf_attributeremoveattpackgrid->proc~esmf_inforemove proc~esmf_attributeremoveattpackgridcomp ESMF_AttributeRemoveAttPackGridComp proc~esmf_attributeremoveattpackgridcomp->proc~esmf_inforemove proc~esmf_attributeremoveattpacklocstream ESMF_AttributeRemoveAttPackLocStream proc~esmf_attributeremoveattpacklocstream->proc~esmf_inforemove proc~esmf_attributeremoveattpackmesh ESMF_AttributeRemoveAttPackMesh proc~esmf_attributeremoveattpackmesh->proc~esmf_inforemove proc~esmf_attributeremoveattpackscicomp ESMF_AttributeRemoveAttPackSciComp proc~esmf_attributeremoveattpackscicomp->proc~esmf_inforemove proc~esmf_attributeremoveattpackstate ESMF_AttributeRemoveAttPackState proc~esmf_attributeremoveattpackstate->proc~esmf_inforemove proc~esmf_infocachereassemblefieldsfinalize ESMF_InfoCacheReassembleFieldsFinalize proc~esmf_infocachereassemblefieldsfinalize->proc~esmf_inforemove proc~esmf_infocachereassemblefieldsfinalize->proc~esmf_infocachereassemblefieldsfinalize program~esmf_infotutorial ESMF_InfoTutorial program~esmf_infotutorial->proc~esmf_inforemove program~esmf_infoutest ESMF_InfoUTest program~esmf_infoutest->proc~esmf_inforemove interface~esmf_attributeremove ESMF_AttributeRemove interface~esmf_attributeremove->proc~esmf_attributeremoveattpackarray interface~esmf_attributeremove->proc~esmf_attributeremoveattpackarraybundle interface~esmf_attributeremove->proc~esmf_attributeremoveattpackcplcomp interface~esmf_attributeremove->proc~esmf_attributeremoveattpackdistgrid interface~esmf_attributeremove->proc~esmf_attributeremoveattpackfield interface~esmf_attributeremove->proc~esmf_attributeremoveattpackfieldbundle interface~esmf_attributeremove->proc~esmf_attributeremoveattpackgrid interface~esmf_attributeremove->proc~esmf_attributeremoveattpackgridcomp interface~esmf_attributeremove->proc~esmf_attributeremoveattpacklocstream interface~esmf_attributeremove->proc~esmf_attributeremoveattpackmesh interface~esmf_attributeremove->proc~esmf_attributeremoveattpackscicomp interface~esmf_attributeremove->proc~esmf_attributeremoveattpackstate proc~esmf_attributeaddattpackstdarray ESMF_AttributeAddAttPackStdArray proc~esmf_attributeaddattpackstdarray->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdarraybundle ESMF_AttributeAddAttPackStdArrayBundle proc~esmf_attributeaddattpackstdarraybundle->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdcplcomp ESMF_AttributeAddAttPackStdCplComp proc~esmf_attributeaddattpackstdcplcomp->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstddistgrid ESMF_AttributeAddAttPackStdDistGrid proc~esmf_attributeaddattpackstddistgrid->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdfield ESMF_AttributeAddAttPackStdField proc~esmf_attributeaddattpackstdfield->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdfieldbundle ESMF_AttributeAddAttPackStdFieldBundle proc~esmf_attributeaddattpackstdfieldbundle->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdgrid ESMF_AttributeAddAttPackStdGrid proc~esmf_attributeaddattpackstdgrid->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdgridcomp ESMF_AttributeAddAttPackStdGridComp proc~esmf_attributeaddattpackstdgridcomp->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdlocstream ESMF_AttributeAddAttPackStdLocStream proc~esmf_attributeaddattpackstdlocstream->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdmesh ESMF_AttributeAddAttPackStdMesh proc~esmf_attributeaddattpackstdmesh->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdscicomp ESMF_AttributeAddAttPackStdSciComp proc~esmf_attributeaddattpackstdscicomp->proc~esmf_attributeaddattpackstdinfo proc~esmf_attributeaddattpackstdstate ESMF_AttributeAddAttPackStdState proc~esmf_attributeaddattpackstdstate->proc~esmf_attributeaddattpackstdinfo proc~esmf_statereconcile_driver ESMF_StateReconcile_driver proc~esmf_statereconcile_driver->proc~esmf_infocachereassemblefieldsfinalize

Source Code

subroutine ESMF_InfoRemove(info, keyParent, keywordEnforcer, keyChild, attnestflag, rc)
! !ARGUMENTS:
  type(ESMF_Info), intent(inout) :: info
  character(len=*), intent(in) :: keyParent
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
  character(len=*), intent(in), optional :: keyChild
  type(ESMF_AttNest_Flag), intent(in), optional :: attnestflag
  integer, intent(out), optional :: rc
!
! !DESCRIPTION:
!     Remove a key-value pair from an \texttt{ESMF\_Info} object.
!
!     The arguments are:
!     \begin{description}
!     \item [info]
!       Target \texttt{ESMF\_Info} object.
!     \item [keyParent]
!       String key to identify the parent location for the removal. If no \textit{keyChild}
!       is specified, then the root location is assumed. See section \ref{info_key_format}
!       for an overview of the key format.
!     \item [{[keyChild]}]
!       String key to identify the value for the removal. This \textit{may not}
!       be a path.
!     \item [{[attnestflag]}]
!       Setting to \texttt{ESMF\_ATTNEST\_ON} triggers a recursive search for
!       \textit{keyParent}. The first instance of the key will be found in the
!       hierarchy. Default is \texttt{ESMF\_ATTNEST\_OFF}.
!     \item [{[rc]}]
!       Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!     \end{description}
!EOP

  integer :: localrc
  character(:), allocatable :: localkeyChild
  logical(C_BOOL) :: recursive

  localrc = ESMF_FAILURE
  if (present(rc)) rc = ESMF_FAILURE
  recursive = .false.

  if (present(keyChild)) then
    localkeyChild = keyChild
  else
    localkeyChild = ""
  end if
  if (present(attnestflag)) then
    if (attnestflag%value==ESMF_ATTNEST_ON%value) recursive = .true.
  end if

  call c_info_erase(info%ptr, trim(keyParent)//C_NULL_CHAR, &
                     trim(localkeyChild)//C_NULL_CHAR, recursive, localrc)
  if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return

  if (present(rc)) rc = ESMF_SUCCESS
end subroutine ESMF_InfoRemove