Util hpp
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user