1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: schedule loading fix

This commit is contained in:
Antonin Portelli 2018-08-07 18:26:49 +01:00
parent 4eac4e575e
commit 639f9cab82

View File

@ -218,11 +218,12 @@ void Application::loadSchedule(const std::string filename)
program_.push_back(vm().getModuleAddress(name));
}
loadedSchedule_ = true;
scheduled_ = true;
}
void Application::printSchedule(void)
{
if (!scheduled_)
if (!scheduled_ and !loadedSchedule_)
{
HADRONS_ERROR(Definition, "Computation not scheduled");
}