Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Generate files correctely with gras_stub_generator.
[simgrid.git] / examples / lua / master_slave.lua
index 883574f..fd4ff4f 100644 (file)
@@ -67,8 +67,13 @@ end -- function ----------------------------------------------------------
 --]]
 
 require "simgrid"
+if (#arg == 2) then
+simgrid.platform(arg[1])
+simgrid.application(arg[2])
+else
 simgrid.platform("../msg/small_platform.xml")
 simgrid.application("../ruby/deploy.xml")
+end
 simgrid.run()
 simgrid.info("Simulation's over.See you.")
 simgrid.clean()