Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_VMPlan), | intent(inout) | :: | vmplan | |||
integer, | intent(in), | optional | :: | openMpHandling | ||
integer, | intent(in), | optional | :: | openMpNumThreads | ||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_VMPlanSetOpenMP(vmplan, openMpHandling, openMpNumThreads, rc) ! ! !ARGUMENTS: type(ESMF_VMPlan), intent(inout) :: vmplan integer, intent(in), optional :: openMpHandling integer, intent(in), optional :: openMpNumThreads integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Set the minimum stack size. ! ! The arguments are: ! \begin{description} ! \item[vmplan] ! VMPlan ! \item[{[openMpHandling]}] ! OpenMP handling mode. Defaults to pinning. ! \item[{[openMpNumThreads]}] ! Number of OpenMP threads under the local PET. Defaults to local peCount. ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI !------------------------------------------------------------------------------ integer :: localrc ! local return code ! initialize return code; assume routine not implemented localrc = ESMF_RC_NOT_IMPL if (present(rc)) rc = ESMF_RC_NOT_IMPL ! Check init status of arguments ESMF_INIT_CHECK_DEEP(ESMF_VMPlanGetInit, vmplan, rc) ! Call into the C++ interface. call c_ESMC_VMPlanSetOpenMP(vmplan, openMpHandling, openMpNumThreads, & localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_VMPlanSetOpenMP