1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

Hadrons: graph consistency check

This commit is contained in:
Antonin Portelli 2018-03-02 18:40:18 +00:00
parent 2f4dac3531
commit c4baf876d4

View File

@ -296,7 +296,18 @@ void VirtualMachine::makeModuleGraph(void)
{ {
for (auto &in: module_[m].input) for (auto &in: module_[m].input)
{ {
graph.addEdge(env().getObjectModule(in), m); int min = env().getObjectModule(in);
if (min < 0)
{
HADRON_ERROR(Definition, "object with address "
+ std::to_string(in)
+ " is not produced by any module");
}
else
{
graph.addEdge(min, m);
}
} }
} }
graph_ = graph; graph_ = graph;