Skip to content

Commit

Permalink
Only route if you have a source *and* target (#87)
Browse files Browse the repository at this point in the history
not source *or* target
Curse You Professor DeMorgan! Chuckle.
  • Loading branch information
baconpaul authored Feb 14, 2024
1 parent f55623f commit 7eb3303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/sst/basic-blocks/mod-matrix/ModMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <cassert>
#include <unordered_map>
#include <unordered_set>
#include <functional>

#include <iostream>
#include "ModMatrixDetails.h"
Expand Down Expand Up @@ -157,7 +158,7 @@ template <typename ModMatrixTraits> struct FixedLengthRoutingTable : RoutingTabl
size_t outIdx{0};
for (auto &r : routes)
{
if (!r.source.has_value() && !r.target.has_value())
if (!r.source.has_value() || !r.target.has_value())
continue;

isOutputMapped[*r.target] = true;
Expand Down

0 comments on commit 7eb3303

Please sign in to comment.