Skip to main content

System Coupling Participant library 2026 R1

File syscDataTransferF.fi

Last update: 09.03.2026

Location: syscDataTransferF.fi

Classes

Namespaces

Source

module fortran
!
! Copyright ANSYS, Inc. 
! Unauthorized use, distribution, or duplication is prohibited.
!
! Provide free-form Fortran interface for
! System Coupling Participant Library.
!
! *********************************************************************
!> \brief Provide a struct for a data transfer.
! *********************************************************************
type :: syscdatatransferf
  type(syscvariablef) :: sourcevariable !< Source variable.
  type(syscvariablef) :: targetvariable !< Target variable.
  integer(kind=4) :: targetside !< Target side.
end type syscdatatransferf
!
!**********************************************************************
!
!> \brief Provide an interface to get a data transfer.
interface syscgetdatatransferf
!
!**********************************************************************
!> \brief Create a data transfer.
!!
!! \param[in] sourceVariable - source variable.
!!
!! \param[in] targetVariable - target variable.
!!
!! \param[in] targetSide - target side.
!**********************************************************************
function syscgetdatatransferf(sourceVariable, targetVariable, &
  targetSide) result(ret)
!
  import :: syscdatatransferf, syscvariablef
  type(syscvariablef), intent(in) :: sourcevariable
  type(syscvariablef), intent(in) :: targetvariable
  integer(kind=4), intent(in) :: targetside
  type(syscdatatransferf) :: ret
!
!DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
!DIR$ ATTRIBUTES DLLIMPORT :: syscGetDataTransferF
!DIR$ ENDIF
!
end function syscgetdatatransferf
!
!**********************************************************************
!
end interface syscgetdatatransferf
!

end module fortran

Connect with Ansys