Skip to content

Commit

Permalink
Complain -- ie terminate -- on unknown cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Oct 17, 2023
1 parent ec90987 commit 78f821b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arbor/cable_cell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ void cable_cell_impl::init() {
case 8: { paint(rc.cables, std::get<density>(what), rc.region); break; }
case 9: { paint(rc.cables, std::get<voltage_process>(what), rc.region); break; }
case 10: { paint(rc.cables, std::get<scaled_mechanism<density>>(what), rc.region); break; }
default: throw arbor_internal_error{"Unknown paintable variant"};
}
}

Expand All @@ -259,6 +260,7 @@ void cable_cell_impl::init() {
case 1: { place(lc.places, std::get<threshold_detector>(what), label); break; }
case 2: { place(lc.places, std::get<synapse>(what), label); break; }
case 3: { place(lc.places, std::get<junction>(what), label); break; }
default: throw arbor_internal_error{"Unknown placeable variant"};
}
}
}
Expand Down

0 comments on commit 78f821b

Please sign in to comment.