Skip to content

Commit

Permalink
Find value of NEED_CMINPACK in configure (#8536)
Browse files Browse the repository at this point in the history
Needed for source-code FMUs that have non-linear loops.
  • Loading branch information
AnHeuermann committed Feb 11, 2022
1 parent 2638a98 commit eb0ed26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -247,6 +247,10 @@ if test "$OPENMODELICADYNAMIC" = "no"; then
NEED_RUNTIME=1
fi

if test -f "external_solvers/hybrj_.c"; then
NEED_CMINPACK=1
fi

if echo "$host_os" | grep -q darwin; then
DLLEXT=".dylib"
if echo "$host_cpu" | grep -q i@<:@3456@:>@86; then
Expand Down
2 changes: 1 addition & 1 deletion testsuite/omsimulator/recompileFMU.mos
Expand Up @@ -29,7 +29,7 @@ buildModelFMU(simpleLoop, version="2.0", fmuType="me"); getErrorString();
// Re-build FMU
system("unzip -o -qq simpleLoop.fmu -d simpleLoop_FMU/");
remove("simpleLoop.fmu");
system("cd simpleLoop_FMU/sources && ./configure CPPFLAGS=\"-I" + getInstallationDirectoryPath() + "/include/omc/c/fmi\" NEED_CMINPACK=1 && make -s", "build_simpleLoop.log"); getErrorString();
system("cd simpleLoop_FMU/sources && ./configure CPPFLAGS=\"-I" + getInstallationDirectoryPath() + "/include/omc/c/fmi\" && make -s", "build_simpleLoop.log"); getErrorString();

system(getInstallationDirectoryPath() + "/bin/OMSimulator simpleLoop.fmu", "simpleLoop_me_systemCall.log");
readFile("simpleLoop_me_systemCall.log");
Expand Down

0 comments on commit eb0ed26

Please sign in to comment.