Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some MSG examples mainly useful to test the model-checker
[simgrid.git] / examples / lua / master_slave.lua
index 8e60860..fd4ff4f 100644 (file)
@@ -66,13 +66,14 @@ simgrid.info("Slave '" ..my_mailbox.."': I'm Done . See You !!");
 end -- function ----------------------------------------------------------
 --]]
 
-function doyield() 
-    coroutine.yield()
-end
-
 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()