Small fix

This commit is contained in:
Thanh C. Tran
2017-04-03 22:14:44 +02:00
parent 83e6a1884c
commit d974851c0e
2 changed files with 4 additions and 2 deletions

View File

@@ -71,10 +71,12 @@ bool SMS::batchFormation()
else
{
bool isBatchForm = false;
bool isBatchFormForThread = false;
unsigned int totalNumThreads = Configuration::getInstance().NumberOfTracePlayers;
for (unsigned int threadID = 1; threadID <= totalNumThreads; threadID++)
{
isBatchForm = isBatchForm || batchFormation(Thread(threadID));
isBatchFormForThread = batchFormation(Thread(threadID));
isBatchForm = isBatchForm || isBatchFormForThread;
}
return isBatchForm;
}

View File

@@ -83,7 +83,7 @@ int sc_main(int argc, char **argv)
if(argc > 1)
simulationToRun = argv[1];
else
simulationToRun = resources + "simulations/sim-batch.xml";
simulationToRun = resources + "simulations/sms-example.xml";
cout << "Simulation file is " << simulationToRun << endl;
SimulationManager manager(resources);