Skip to content

Commit

Permalink
Merge pull request #96 from erlingrj/fix-furuta
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee authored Jan 27, 2024
2 parents b10ba3a + 1e525eb commit 97d7fe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
target C {
timeout: 3 secs,
fast: true,
flags: "-lm",
cmake-include: "furuta.cmake",
build: "./build_run_plot.sh FurutaPendulum"
}

Expand Down
6 changes: 3 additions & 3 deletions examples/C/src/modal_models/FurutaPendulum/build_run_plot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ fi

# Build the generated code.
cd ${LF_SOURCE_GEN_DIRECTORY}
cmake -DLF_REACTION_GRAPH_BREADTH=3 -DLF_THREADED=1 -DNUMBER_OF_WORKERS=0 -DSCHEDULER=NP -DMODAL_REACTORS=TRUE .
cmake --build .
cmake -Bbuild
make -C build

# Move the executable to the bin directory.
mv $1 ${LF_BIN_DIRECTORY}
mv build/$1 ${LF_BIN_DIRECTORY}

# Move back to source directory to run program
cd ${LF_SOURCE_DIRECTORY}
Expand Down
1 change: 1 addition & 0 deletions examples/C/src/modal_models/FurutaPendulum/furuta.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target_link_libraries(${LF_MAIN_TARGET} PRIVATE m)

0 comments on commit 97d7fe9

Please sign in to comment.