File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 66
77static constexpr uint8_t DSM_VERSION_MAJOR = 2 ;
88static constexpr uint8_t DSM_VERSION_MINOR = 3 ;
9- static constexpr uint8_t DSM_VERSION_PATCH = 10 ;
9+ static constexpr uint8_t DSM_VERSION_PATCH = 11 ;
1010
1111static auto const DSM_VERSION =
1212 std::format (" {}.{}.{}" , DSM_VERSION_MAJOR, DSM_VERSION_MINOR, DSM_VERSION_PATCH);
Original file line number Diff line number Diff line change @@ -603,12 +603,15 @@ namespace dsm {
603603 }
604604 file << this ->time ();
605605 for (auto const & [_, pStreet] : this ->m_graph .streetSet ()) {
606+ int value{0 };
606607 if (pStreet->isSpire ()) {
607- auto & spire = dynamic_cast <SpireStreet&>(*pStreet);
608- file << ' ;' << spire.inputCounts (reset);
609- } else {
610- file << ' ;' << 0 ;
608+ if (pStreet->isStochastic ()) {
609+ value = dynamic_cast <StochasticSpireStreet&>(*pStreet).inputCounts (reset);
610+ } else {
611+ value = dynamic_cast <SpireStreet&>(*pStreet).inputCounts (reset);
612+ }
611613 }
614+ file << ' ;' << value;
612615 }
613616 file << std::endl;
614617 file.close ();
@@ -634,12 +637,15 @@ namespace dsm {
634637 }
635638 file << this ->time ();
636639 for (auto const & [_, pStreet] : this ->m_graph .streetSet ()) {
640+ int value{0 };
637641 if (pStreet->isSpire ()) {
638- auto & spire = dynamic_cast <SpireStreet&>(*pStreet);
639- file << ' ;' << spire.outputCounts (reset);
640- } else {
641- file << ' ;' << 0 ;
642+ if (pStreet->isStochastic ()) {
643+ value = dynamic_cast <StochasticSpireStreet&>(*pStreet).outputCounts (reset);
644+ } else {
645+ value = dynamic_cast <SpireStreet&>(*pStreet).outputCounts (reset);
646+ }
642647 }
648+ file << ' ;' << value;
643649 }
644650 file << std::endl;
645651 file.close ();
You can’t perform that action at this time.
0 commit comments