Skip to content

Commit e9772cc

Browse files
committed
Fix
1 parent fb7cf9a commit e9772cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/stalingrado.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int main() {
8282
std::cout << "Streets: " << graph.nEdges() << '\n';
8383

8484
// Create the dynamics
85-
Dynamics dynamics{graph};
85+
Dynamics dynamics{graph, 69};
8686
dynamics.setMinSpeedRateo(0.95);
8787
dynamics.setSpeedFluctuationSTD(0.2);
8888
Itinerary itinerary{0, 4};

src/dsm/headers/FirstOrderDynamics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace dsm {
1111
public:
1212
/// @brief Construct a new First Order Dynamics object
1313
/// @param graph, The graph representing the network
14-
FirstOrderDynamics(Graph& graph, std::optional<unsigned int> seed)
14+
FirstOrderDynamics(Graph& graph, std::optional<unsigned int> seed = std::nullopt)
1515
: RoadDynamics<delay_t>(graph, seed), m_speedFluctuationSTD{0.} {};
1616
/// @brief Set the speed of an agent
1717
/// @param agentId The id of the agent

0 commit comments

Comments
 (0)