Skip to content

Commit 34d7ebc

Browse files
committed
Simulated the model again after changing settings
Intermediate files included now
1 parent bed91a8 commit 34d7ebc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1530
-3
lines changed

NonInteractingTanks.TwoConnectedTanks/TwoConnectedTanks.c

Lines changed: 554 additions & 0 deletions
Large diffs are not rendered by default.
0 Bytes
Binary file not shown.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Makefile generated by OpenModelica
2+
# Platform: win64
3+
4+
# Simulations use -O3 by default
5+
CC=clang
6+
CXX=clang++
7+
LINK=clang++ -shared -Xlinker --export-all-symbols
8+
EXEEXT=.exe
9+
DLLEXT=.dll
10+
CFLAGS_BASED_ON_INIT_FILE=
11+
# define OMC_CFLAGS_OPTIMIZATION env variable to your desired optimization level to override this
12+
OMC_CFLAGS_OPTIMIZATION=-Os
13+
DEBUG_FLAGS=$(OMC_CFLAGS_OPTIMIZATION)
14+
CFLAGS=-municode $(CFLAGS_BASED_ON_INIT_FILE) $(DEBUG_FLAGS) -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse ${MODELICAUSERCFLAGS}
15+
CPPFLAGS= -I"C:/Program Files/OpenModelica1.24.3-64bit/include/omc/c" -I"C:/Program Files/OpenModelica1.24.3-64bit/include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TwoConnectedTanks -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0
16+
# define OMC_LDFLAGS_LINK_TYPE env variable to "static" to override this
17+
OMC_LDFLAGS_LINK_TYPE=dynamic
18+
RUNTIME_LIBS=-lSimulationRuntimeC -Wl,-Bdynamic -lomcgc -lryu -lopenblas -Wl,-B$(OMC_LDFLAGS_LINK_TYPE) -lstdc++ -Wl,-Bdynamic
19+
LDFLAGS=-L"C:/Program Files/OpenModelica1.24.3-64bit/lib//omc" -L"C:/Program Files/OpenModelica1.24.3-64bit/lib" -Wl,--stack,16777216,-rpath,"C:/Program Files/OpenModelica1.24.3-64bit/lib//omc" -L"C:/Program Files/OpenModelica1.24.3-64bit/bin" -Wl,-rpath,"C:/Program Files/OpenModelica1.24.3-64bit/lib" -fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lsz -Wl,-Bdynamic $(RUNTIME_LIBS)
20+
DIREXTRA=-L"D:/SHRI1/github/OpenModelica-GUI/NonInteractingTanks"
21+
MAINFILE=TwoConnectedTanks.c
22+
MAINOBJ=TwoConnectedTanks.o
23+
CFILES=TwoConnectedTanks_functions.c TwoConnectedTanks_records.c \
24+
TwoConnectedTanks_01exo.c TwoConnectedTanks_02nls.c TwoConnectedTanks_03lsy.c TwoConnectedTanks_04set.c TwoConnectedTanks_05evt.c TwoConnectedTanks_06inz.c TwoConnectedTanks_07dly.c \
25+
TwoConnectedTanks_08bnd.c TwoConnectedTanks_09alg.c TwoConnectedTanks_10asr.c TwoConnectedTanks_11mix.c TwoConnectedTanks_12jac.c TwoConnectedTanks_13opt.c TwoConnectedTanks_14lnz.c \
26+
TwoConnectedTanks_15syn.c TwoConnectedTanks_16dae.c TwoConnectedTanks_17inl.c TwoConnectedTanks_18spd.c
27+
28+
OFILES=$(CFILES:.c=.o)
29+
GENERATEDFILES=$(MAINFILE) TwoConnectedTanks.makefile TwoConnectedTanks_literals.h TwoConnectedTanks_functions.h $(CFILES)
30+
31+
.PHONY: omc_main_target clean bundle
32+
33+
# This is to make sure that TwoConnectedTanks_*.c are always compiled.
34+
.PHONY: $(CFILES)
35+
36+
omc_main_target: $(MAINOBJ) TwoConnectedTanks_functions.h TwoConnectedTanks_literals.h $(OFILES)
37+
$(CC) -I. -o TwoConnectedTanks$(EXEEXT) $(MAINOBJ) $(OFILES) $(DIREXTRA) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
38+
39+
omc_dll_target: $(MAINOBJ) TwoConnectedTanks_functions.h TwoConnectedTanks_literals.h $(OFILES)
40+
$(CC) -DOMC_DLL_MAIN_DEFINE -o $(MAINOBJ) -c $(MAINFILE) $(DIREXTRA) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
41+
$(CC) -shared -I. -o TwoConnectedTanks$(DLLEXT) $(MAINOBJ) $(OFILES) $(DIREXTRA) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
42+
43+
clean:
44+
@rm -f TwoConnectedTanks_records.o $(MAINOBJ)
45+
46+
bundle:
47+
@tar -cvf TwoConnectedTanks_Files.tar $(GENERATEDFILES)
31.4 KB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* External objects file */
2+
#include "TwoConnectedTanks_model.h"
3+
#if defined(__cplusplus)
4+
extern "C" {
5+
#endif
6+
7+
void TwoConnectedTanks_callExternalObjectDestructors(DATA *data, threadData_t *threadData)
8+
{
9+
if(data->simulationInfo->extObjs)
10+
{
11+
free(data->simulationInfo->extObjs);
12+
data->simulationInfo->extObjs = 0;
13+
}
14+
}
15+
#if defined(__cplusplus)
16+
}
17+
#endif
18+
775 Bytes
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Non Linear Systems */
2+
#include "TwoConnectedTanks_model.h"
3+
#include "TwoConnectedTanks_12jac.h"
4+
#include "simulation/jacobian_util.h"
5+
#if defined(__cplusplus)
6+
extern "C" {
7+
#endif
8+
9+
10+
#if defined(__cplusplus)
11+
}
12+
#endif
13+
414 Bytes
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Linear Systems */
2+
#include "TwoConnectedTanks_model.h"
3+
#include "TwoConnectedTanks_12jac.h"
4+
#if defined(__cplusplus)
5+
extern "C" {
6+
#endif
7+
8+
/* linear systems */
9+
10+
11+
#if defined(__cplusplus)
12+
}
13+
#endif
14+
414 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)