ESMF_VMSetThis Subroutine

public recursive subroutine ESMF_VMSetThis(vm, this, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_VM), intent(inout) :: vm
type(ESMF_Pointer), intent(in) :: this
integer, intent(out), optional :: rc

Called by

proc~~esmf_vmsetthis~~CalledByGraph proc~esmf_vmsetthis ESMF_VMSetThis proc~esmf_compconstruct ESMF_CompConstruct proc~esmf_compconstruct->proc~esmf_vmsetthis proc~f_esmf_compgetvm f_esmf_compgetvm proc~f_esmf_compgetvm->proc~esmf_vmsetthis proc~f_esmf_compgetvmparent f_esmf_compgetvmparent proc~f_esmf_compgetvmparent->proc~esmf_vmsetthis proc~f_esmf_compinsertvm f_esmf_compinsertvm proc~f_esmf_compinsertvm->proc~esmf_vmsetthis proc~f_esmf_compreplicate f_esmf_compreplicate proc~f_esmf_compreplicate->proc~esmf_vmsetthis proc~setservices SetServices proc~setservices->proc~esmf_vmsetthis proc~esmf_cplcompcreate ESMF_CplCompCreate proc~esmf_cplcompcreate->proc~esmf_compconstruct proc~esmf_gridcompcreate ESMF_GridCompCreate proc~esmf_gridcompcreate->proc~esmf_compconstruct proc~esmf_scicompcreate ESMF_SciCompCreate proc~esmf_scicompcreate->proc~esmf_compconstruct

Source Code

  recursive subroutine ESMF_VMSetThis(vm, this, rc)
!
! !ARGUMENTS:
    type(ESMF_VM),      intent(inout)           :: vm
    type(ESMF_Pointer), intent(in)              :: this
    integer,            intent(out),  optional  :: rc  
!         
!
! !DESCRIPTION:
!     Set C++ pointer in VM.
!
!     The arguments are:
!     \begin{description}
!     \item[vm] 
!          Specified {\tt ESMF\_VM} object.
!     \item[this] 
!          C++ pointer.
!     \item[{[rc]}] 
!          Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!     \end{description}
!
!EOPI
!------------------------------------------------------------------------------

    ! initialize return code; assume routine not implemented
    if (present(rc)) rc = ESMF_RC_NOT_IMPL
    
    ! Copy C++ pointer
    vm%this = this

    ! return successfully
    if (present(rc)) rc = ESMF_SUCCESS
    
  end subroutine ESMF_VMSetThis