mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
Hadrons: VM fixes
This commit is contained in:
parent
842754bea9
commit
591a38c487
@ -150,7 +150,7 @@ void TZ2<FImpl>::execute(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto &src = envGet(PropagatorField, getName());
|
auto &src = envGet(PropagatorField, getName());
|
||||||
auto &t = envGet(Lattice<iScalar<vInteger>>, getName());
|
auto &t = envGet(Lattice<iScalar<vInteger>>, tName_);
|
||||||
Complex shift(1., 1.);
|
Complex shift(1., 1.);
|
||||||
|
|
||||||
if (!hasT_)
|
if (!hasT_)
|
||||||
|
@ -83,6 +83,24 @@ void VirtualMachine::pushModule(VirtualMachine::ModPt &pt)
|
|||||||
}
|
}
|
||||||
m.input.push_back(env().getObjectAddress(ref));
|
m.input.push_back(env().getObjectAddress(ref));
|
||||||
}
|
}
|
||||||
|
auto inCopy = m.input;
|
||||||
|
// if module has inputs with references, they need to be added as
|
||||||
|
// an input
|
||||||
|
for (auto &in: inCopy)
|
||||||
|
{
|
||||||
|
int inm = env().getObjectModule(in);
|
||||||
|
|
||||||
|
if (inm > 0)
|
||||||
|
{
|
||||||
|
if (getModule(inm)->getReference().size() > 0)
|
||||||
|
{
|
||||||
|
for (auto &rin: getModule(inm)->getReference())
|
||||||
|
{
|
||||||
|
m.input.push_back(env().getObjectAddress(rin));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
module_.push_back(std::move(m));
|
module_.push_back(std::move(m));
|
||||||
address = static_cast<unsigned int>(module_.size() - 1);
|
address = static_cast<unsigned int>(module_.size() - 1);
|
||||||
moduleAddress_[name] = address;
|
moduleAddress_[name] = address;
|
||||||
|
Loading…
Reference in New Issue
Block a user