1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01: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)); program_.push_back(vm().getModuleAddress(name));
} }
loadedSchedule_ = true; loadedSchedule_ = true;
scheduled_ = true;
} }
void Application::printSchedule(void) void Application::printSchedule(void)
{ {
if (!scheduled_) if (!scheduled_ and !loadedSchedule_)
{ {
HADRONS_ERROR(Definition, "Computation not scheduled"); HADRONS_ERROR(Definition, "Computation not scheduled");
} }