Skip to main content

System Coupling Fortran library 2025 R1

syscOutputScalarDataF

Last update: 17.07.2025
1 module fortran
2 !
3 ! Copyright ANSYS, Inc.
4 ! Unauthorized use, distribution, or duplication is prohibited.
5 !
6 ! Provide free-form Fortran interface for
7 ! System Coupling Participant Library.
8 !
9 ! *********************************************************************
24 !
26  integer(kind=8) :: primitivetype
27  integer(kind=8) :: dataptr
28  integer(kind=8) :: datasize
29 end type syscoutputscalardataf
30 !
31 !**********************************************************************
33 !**********************************************************************
35 !
36 !**********************************************************************
37 !! \brief Create an output scalar data access type.
38 !!
39 !! Primitive type will default to double-precision (64-bit).
40 !! Data size will be set to zero.
41 !! Data pointer will be set to null.
42 !**********************************************************************
43 function syscgetoutputscalardataf() result (ret)
44  import :: syscoutputscalardataf
45  type(SyscOutputScalarDataF) :: ret
46 !DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
47 !DIR$ ATTRIBUTES DLLIMPORT :: syscGetOutputScalarDataF
48 !DIR$ ENDIF
49 end function syscgetoutputscalardataf
50 !
51 !**********************************************************************
56 !**********************************************************************
57 function syscgetoutputscalardataf_r4(data, dataSize) result (ret)
58 !
59  import :: syscoutputscalardataf
60  integer(kind=8), intent(in) :: datasize
61  real(kind=4), intent(in), target :: data(datasize)
62  type(syscoutputscalardataf) :: ret
63 !
64 !DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
65 !DIR$ ATTRIBUTES DLLIMPORT :: syscGetOutputScalarDataF_R4
66 !DIR$ ENDIF
67 !
68 end function syscgetoutputscalardataf_r4
69 !
70 !**********************************************************************
75 !**********************************************************************
76 function syscgetoutputscalardataf_r8(data, dataSize) result (ret)
77 !
78  import :: syscoutputscalardataf
79  integer(kind=8), intent(in) :: datasize
80  real(kind=8), intent(in), target :: data(datasize)
81  type(syscoutputscalardataf) :: ret
82 !
83 !DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
84 !DIR$ ATTRIBUTES DLLIMPORT :: syscGetOutputScalarDataF_R8
85 !DIR$ ENDIF
86 !
87 end function syscgetoutputscalardataf_r8
88 !
89 !**********************************************************************
94 !**********************************************************************
95 function syscgetoutputscalardataf_i4(data, dataSize) result (ret)
96 !
97  import :: syscoutputscalardataf
98  integer(kind=8), intent(in) :: datasize
99  integer(kind=4), intent(in), target :: data(datasize)
100  type(syscoutputscalardataf) :: ret
101 !
102 !DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
103 !DIR$ ATTRIBUTES DLLIMPORT :: syscGetOutputScalarDataF_I4
104 !DIR$ ENDIF
105 !
106 end function syscgetoutputscalardataf_i4
107 !
108 !**********************************************************************
113 !**********************************************************************
114 function syscgetoutputscalardataf_i8(data, dataSize) result (ret)
115 !
116  import :: syscoutputscalardataf
117  integer(kind=8), intent(in) :: datasize
118  integer(kind=8), intent(in), target :: data(datasize)
119  type(syscoutputscalardataf) :: ret
120 !
121 !DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
122 !DIR$ ATTRIBUTES DLLIMPORT :: syscGetOutputScalarDataF_I8
123 !DIR$ ENDIF
124 !
125 end function syscgetoutputscalardataf_i8
126 !
127 end interface syscgetoutputscalardataf
128 !
129 end module fortran
Provide an interface to get output scalar data.
Provide an output scalar data access type.

Connect with Ansys