summaryrefslogtreecommitdiff
path: root/Simulator/Flowsheet_15syn.c
diff options
context:
space:
mode:
Diffstat (limited to 'Simulator/Flowsheet_15syn.c')
-rw-r--r--Simulator/Flowsheet_15syn.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/Simulator/Flowsheet_15syn.c b/Simulator/Flowsheet_15syn.c
new file mode 100644
index 0000000..7a92e41
--- /dev/null
+++ b/Simulator/Flowsheet_15syn.c
@@ -0,0 +1,59 @@
+/* Synchronous systems */
+#include "Flowsheet_model.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+/* Initializes the clocks of model. */
+void Flowsheet_function_initSynchronous(DATA *data, threadData_t *threadData)
+{
+ TRACE_PUSH
+ long i=0, j=0;
+ TRACE_POP
+}
+
+/* Update the base clock. */
+void Flowsheet_function_updateSynchronous(DATA *data, threadData_t *threadData, long i)
+{
+ TRACE_PUSH
+ modelica_boolean ret;
+ switch (i) {
+ default:
+ throwStreamPrint(NULL, "Internal Error: unknown base partition %ld", i);
+ break;
+ }
+ TRACE_POP
+}
+
+
+
+/*Clocked systems equations */
+int Flowsheet_function_equationsSynchronous(DATA *data, threadData_t *threadData, long i)
+{
+ TRACE_PUSH
+ int ret;
+
+ switch (i) {
+ default:
+ throwStreamPrint(NULL, "Internal Error: unknown sub partition %ld", i);
+ ret = 1;
+ break;
+ }
+
+ TRACE_POP
+ return ret;
+}
+
+/* pre(%v%) = %v% */
+void Flowsheet_function_savePreSynchronous(DATA *data, threadData_t *threadData)
+{
+ TRACE_PUSH
+
+
+ TRACE_POP
+}
+
+#if defined(__cplusplus)
+}
+#endif
+