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:
parent
2f4dac3531
commit
c4baf876d4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user