Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / examples / lua / masterslave / master_slave.lua
index 2d32e52..984dba7 100644 (file)
@@ -3,14 +3,9 @@ dofile 'slave.lua'
 -- Simulation Code ----------------------------------------------------------
 
 require "simgrid"
-if (#arg == 2) then
-simgrid.platform(arg[1])
-simgrid.application(arg[2])
-else
-simgrid.platform("../../msg/small_platform.xml")
-simgrid.application("../deploy.xml")
-end
-simgrid.run()
-simgrid.info("Simulation's over.See you.")
-simgrid.clean()
 
+simgrid.platform(arg[1] or "../../msg/small_platform.xml")
+simgrid.application(arg[2] or "../deploy.xml")
+simgrid.run()
+simgrid.info("Simulation's over. See you.")
+-- end-of-master-slave