Small fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user