1 | #include "IntegrateInterpolatedExternalVector_functions.h"
|
---|
2 | #ifdef __cplusplus
|
---|
3 | extern "C" {
|
---|
4 | #endif
|
---|
5 |
|
---|
6 | #include "IntegrateInterpolatedExternalVector_literals.h"
|
---|
7 | #include "IntegrateInterpolatedExternalVector_includes.h"
|
---|
8 |
|
---|
9 |
|
---|
10 |
|
---|
11 | void omc_VectorTable_destructor(threadData_t *threadData, modelica_complex _table)
|
---|
12 | {
|
---|
13 | void * _table_ext;
|
---|
14 | void * _table_ext;
|
---|
15 | _table_ext = (void *)_table;
|
---|
16 | _table_ext = (void *)_table;
|
---|
17 | _table_ext = destroyVectorTable(_table_ext);
|
---|
18 | return;
|
---|
19 | }
|
---|
20 | void boxptr_VectorTable_destructor(threadData_t *threadData, modelica_metatype _table)
|
---|
21 | {
|
---|
22 | omc_VectorTable_destructor(threadData, _table);
|
---|
23 | return;
|
---|
24 | }
|
---|
25 | modelica_real omc_InterpolateExternalVector(threadData_t *threadData, modelica_real _x, modelica_complex _table)
|
---|
26 | {
|
---|
27 | void * _table_ext;
|
---|
28 | double _x_ext;
|
---|
29 | double _y_ext;
|
---|
30 | modelica_real _y;
|
---|
31 | _table_ext = (void *)_table;
|
---|
32 | _x_ext = (double)_x;
|
---|
33 | _y_ext = interpolateVectorTable(_table_ext, _x_ext);
|
---|
34 | _y = (modelica_real)_y_ext;
|
---|
35 | return _y;
|
---|
36 | }
|
---|
37 | modelica_metatype boxptr_InterpolateExternalVector(threadData_t *threadData, modelica_metatype _x, modelica_metatype _table)
|
---|
38 | {
|
---|
39 | modelica_real tmp1;
|
---|
40 | modelica_real _y;
|
---|
41 | modelica_metatype out_y;
|
---|
42 | tmp1 = mmc_unbox_real(_x);
|
---|
43 | _y = omc_InterpolateExternalVector(threadData, tmp1, _table);
|
---|
44 | out_y = mmc_mk_rcon(_y);
|
---|
45 | return out_y;
|
---|
46 | }
|
---|
47 | modelica_complex omc_VectorTable_constructor(threadData_t *threadData, real_array _ybar)
|
---|
48 | {
|
---|
49 | void *_ybar_c89;
|
---|
50 | void * _table_ext;
|
---|
51 | modelica_complex _table;
|
---|
52 | _ybar_c89 = (void*) data_of_real_c89_array(&(_ybar));
|
---|
53 | _table_ext = createVectorTable((const double*) _ybar_c89, size_of_dimension_base_array(_ybar, ((modelica_integer) 1)));
|
---|
54 | _table = (modelica_complex)_table_ext;
|
---|
55 | return _table;
|
---|
56 | }
|
---|
57 | modelica_metatype boxptr_VectorTable_constructor(threadData_t *threadData, modelica_metatype _ybar)
|
---|
58 | {
|
---|
59 | modelica_complex _table;
|
---|
60 | _table = omc_VectorTable_constructor(threadData, *((base_array_t*)_ybar));
|
---|
61 | /* skip box _table; ExternalObject VectorTable */
|
---|
62 | return _table;
|
---|
63 | }
|
---|
64 |
|
---|
65 | #ifdef __cplusplus
|
---|
66 | }
|
---|
67 | #endif
|
---|