This commit is contained in:
salijagic
2026-05-19 09:18:27 +02:00
parent cd884961f2
commit a22f021cb9
2 changed files with 125 additions and 1 deletions
+9 -1
View File
@@ -50,7 +50,7 @@ VARIANT ?= baseline
VARIANT_SRC := variant_$(VARIANT).cpp
SRC := main.cpp $(VARIANT_SRC)
HEADERS := board.hpp forces.hpp pedestrian.hpp vector2d.hpp constants.hpp social_force.hpp
HEADERS := board.hpp forces.hpp pedestrian.hpp vector2d.hpp constants.hpp social_force.hpp util.hpp
TEST_SRC := test_vector2d.cpp test_board.cpp test_forces.cpp $(VARIANT_SRC)
TEST_TARGET := run_tests
@@ -72,6 +72,14 @@ MP4 ?= simulation.mp4 # Default visualization video output file.
# Use RANDOM_SEED=1 to seed from std::random_device.
RANDOM_SEED ?= 0
# flopcounter enabled/disabled, no impact on runtime when running with 0
# default = 0 = disabled
# 1 = enabled
# if set to 0 --> compiler will swap all function calls with ((void)0)
# using -O3 will remove all ((void)0)
FLOPCOUNT ?= 0
CXXFLAGS += -DFLOPCOUNT=$(FLOPCOUNT)
# Pass random-seeding mode to the C++ code.
CXXFLAGS += -DRANDOM_SEED=$(RANDOM_SEED)