forked from modelica/Reference-FMUs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
45 lines (35 loc) · 718 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef config_h
#define config_h
#include <stdint.h>
// define class name and unique id
#define MODEL_IDENTIFIER LinearTransform
#define INSTANTIATION_TOKEN "{D773325B-AB94-4630-BF85-643EB24FCB78}"
// define model size
#define NX 0
#define NZ 0
#define CO_SIMULATION
#define MODEL_EXCHANGE
#define SET_FLOAT64
#define GET_UINT64
#define SET_UINT64
#define EVENT_UPDATE
#define FIXED_SOLVER_STEP 1
#define DEFAULT_STOP_TIME 10
#define M_MAX 5
#define N_MAX 5
typedef enum {
vr_time,
vr_m,
vr_n,
vr_u,
vr_A,
vr_y
} ValueReference;
typedef struct {
uint64_t m;
uint64_t n;
double u[N_MAX];
double A[M_MAX][N_MAX];
double y[M_MAX];
} ModelData;
#endif /* config_h */