1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: Fortran Rappture Units Stub Function Source |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Derrick Kearney, Purdue University |
---|
7 | * Copyright (c) 2004-2005 Purdue Research Foundation |
---|
8 | * |
---|
9 | * See the file "license.terms" for information on usage and |
---|
10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
11 | * ====================================================================== |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef _RpUNITS_F_STUBS_SRC |
---|
15 | #define _RpUNITS_F_STUBS_SRC |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | int |
---|
22 | rp_define_unit_ (char* unitName, int* basisName, int unitName_len) { |
---|
23 | return rp_define_unit(unitName,basisName,unitName_len); |
---|
24 | } |
---|
25 | |
---|
26 | int |
---|
27 | rp_define_unit__ (char* unitName, int* basisName, int unitName_len) { |
---|
28 | return rp_define_unit(unitName,basisName,unitName_len); |
---|
29 | } |
---|
30 | |
---|
31 | int |
---|
32 | RP_DEFINE_UNIT (char* unitName, int* basisName, int unitName_len) { |
---|
33 | return rp_define_unit(unitName,basisName,unitName_len); |
---|
34 | } |
---|
35 | |
---|
36 | int |
---|
37 | rp_find_ (char* searchName, int searchName_len) { |
---|
38 | return rp_find(searchName,searchName_len); |
---|
39 | } |
---|
40 | |
---|
41 | int |
---|
42 | rp_find__ (char* searchName, int searchName_len) { |
---|
43 | return rp_find(searchName,searchName_len); |
---|
44 | } |
---|
45 | |
---|
46 | int |
---|
47 | RP_FIND (char* searchName, int searchName_len) { |
---|
48 | return rp_find(searchName,searchName_len); |
---|
49 | } |
---|
50 | |
---|
51 | int |
---|
52 | rp_get_units_ (int* unitRefVal, char* retText, int retText_len) { |
---|
53 | return rp_get_units(unitRefVal,retText,retText_len); |
---|
54 | } |
---|
55 | |
---|
56 | int |
---|
57 | rp_get_units__ (int* unitRefVal, char* retText, int retText_len) { |
---|
58 | return rp_get_units(unitRefVal,retText,retText_len); |
---|
59 | } |
---|
60 | |
---|
61 | int |
---|
62 | RP_GET_UNITS (int* unitRefVal, char* retText, int retText_len) { |
---|
63 | return rp_get_units(unitRefVal,retText,retText_len); |
---|
64 | } |
---|
65 | |
---|
66 | int |
---|
67 | rp_get_units_name_ (int* unitRefVal, char* retText, int retText_len) { |
---|
68 | return rp_get_units_name(unitRefVal,retText,retText_len); |
---|
69 | } |
---|
70 | |
---|
71 | int |
---|
72 | rp_get_units_name__ (int* unitRefVal, char* retText, int retText_len) { |
---|
73 | return rp_get_units_name(unitRefVal,retText,retText_len); |
---|
74 | } |
---|
75 | |
---|
76 | int |
---|
77 | RP_GET_UNITS_NAME (int* unitRefVal, char* retText, int retText_len) { |
---|
78 | return rp_get_units_name(unitRefVal,retText,retText_len); |
---|
79 | } |
---|
80 | |
---|
81 | int |
---|
82 | rp_get_exponent_ (int* unitRefVal, double* retExponent) { |
---|
83 | return rp_get_exponent(unitRefVal,retExponent); |
---|
84 | } |
---|
85 | |
---|
86 | int |
---|
87 | rp_get_exponent__ (int* unitRefVal, double* retExponent) { |
---|
88 | return rp_get_exponent(unitRefVal,retExponent); |
---|
89 | } |
---|
90 | |
---|
91 | int |
---|
92 | RP_GET_EXPONENT (int* unitRefVal, double* retExponent) { |
---|
93 | return rp_get_exponent(unitRefVal,retExponent); |
---|
94 | } |
---|
95 | |
---|
96 | int |
---|
97 | rp_get_basis_ (int* unitRefVal) { |
---|
98 | return rp_get_basis(unitRefVal); |
---|
99 | } |
---|
100 | |
---|
101 | int |
---|
102 | rp_get_basis__ (int* unitRefVal) { |
---|
103 | return rp_get_basis(unitRefVal); |
---|
104 | } |
---|
105 | |
---|
106 | int |
---|
107 | RP_GET_BASIS (int* unitRefVal) { |
---|
108 | return rp_get_basis(unitRefVal); |
---|
109 | } |
---|
110 | |
---|
111 | int |
---|
112 | rp_units_convert_dbl_ (char* fromVal, |
---|
113 | char* toUnitsName, |
---|
114 | double* convResult, |
---|
115 | int fromVal_len, |
---|
116 | int toUnitsName_len ) { |
---|
117 | |
---|
118 | return rp_units_convert_dbl( fromVal, toUnitsName, convResult, |
---|
119 | fromVal_len, toUnitsName_len); |
---|
120 | } |
---|
121 | |
---|
122 | int |
---|
123 | rp_units_convert_dbl__ (char* fromVal, |
---|
124 | char* toUnitsName, |
---|
125 | double* convResult, |
---|
126 | int fromVal_len, |
---|
127 | int toUnitsName_len ) { |
---|
128 | |
---|
129 | return rp_units_convert_dbl( fromVal, toUnitsName, convResult, |
---|
130 | fromVal_len, toUnitsName_len); |
---|
131 | } |
---|
132 | |
---|
133 | int |
---|
134 | RP_UNITS_CONVERT_DBL (char* fromVal, |
---|
135 | char* toUnitsName, |
---|
136 | double* convResult, |
---|
137 | int fromVal_len, |
---|
138 | int toUnitsName_len ) { |
---|
139 | |
---|
140 | return rp_units_convert_dbl( fromVal, toUnitsName, convResult, |
---|
141 | fromVal_len, toUnitsName_len); |
---|
142 | } |
---|
143 | |
---|
144 | int |
---|
145 | rp_units_convert_str_ (char* fromVal, |
---|
146 | char* toUnitsName, |
---|
147 | char* retText, |
---|
148 | int fromVal_len, |
---|
149 | int toUnitsName_len, |
---|
150 | int retText_len ) { |
---|
151 | |
---|
152 | return rp_units_convert_str( fromVal,toUnitsName, retText, fromVal_len, |
---|
153 | toUnitsName_len, retText_len); |
---|
154 | } |
---|
155 | |
---|
156 | int |
---|
157 | rp_units_convert_str__ (char* fromVal, |
---|
158 | char* toUnitsName, |
---|
159 | char* retText, |
---|
160 | int fromVal_len, |
---|
161 | int toUnitsName_len, |
---|
162 | int retText_len ) { |
---|
163 | |
---|
164 | return rp_units_convert_str( fromVal,toUnitsName, retText, fromVal_len, |
---|
165 | toUnitsName_len, retText_len); |
---|
166 | } |
---|
167 | |
---|
168 | int |
---|
169 | RP_UNITS_CONVERT_STR (char* fromVal, |
---|
170 | char* toUnitsName, |
---|
171 | char* retText, |
---|
172 | int fromVal_len, |
---|
173 | int toUnitsName_len, |
---|
174 | int retText_len ) { |
---|
175 | |
---|
176 | return rp_units_convert_str( fromVal,toUnitsName, retText, fromVal_len, |
---|
177 | toUnitsName_len, retText_len); |
---|
178 | } |
---|
179 | |
---|
180 | #ifdef __cplusplus |
---|
181 | } |
---|
182 | #endif |
---|
183 | |
---|
184 | #endif |
---|