Skip to content

Commit

Permalink
addendum refs #6852 (do not write output for internal edges when runn…
Browse files Browse the repository at this point in the history
…ing with --no-internal-links)
  • Loading branch information
namdre committed Apr 17, 2020
1 parent 45cd1c6 commit 18042e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/microsim/output/MSFullExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ MSFullExport::writeEdge(OutputDevice& of) {
const MSEdgeVector& edges = ec.getEdges();
for (MSEdgeVector::const_iterator e = edges.begin(); e != edges.end(); ++e) {
MSEdge& edge = **e;
if (!MSGlobals::gUsingInternalLanes && !edge.isNormal()) {
continue;
}
of.openTag("edge").writeAttr("id", edge.getID()).writeAttr("traveltime", edge.getCurrentTravelTime());
const std::vector<MSLane*>& lanes = edge.getLanes();
for (std::vector<MSLane*>::const_iterator lane = lanes.begin(); lane != lanes.end(); ++lane) {
Expand Down
3 changes: 3 additions & 0 deletions src/microsim/output/MSXMLRawOut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ MSXMLRawOut::write(OutputDevice& of, const MSEdgeControl& ec,

void
MSXMLRawOut::writeEdge(OutputDevice& of, const MSEdge& edge, SUMOTime timestep) {
if (!MSGlobals::gUsingInternalLanes && !edge.isNormal()) {
return;
}
//en
bool dump = !MSGlobals::gOmitEmptyEdgesOnDump;
if (!dump) {
Expand Down

0 comments on commit 18042e7

Please sign in to comment.