X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d2e821780d4e656ef56a50cd334893799c660a05..606fd6074429a2b25a185ba92dce29759ab41255:/examples/lua/masterslave/master_slave.lua diff --git a/examples/lua/masterslave/master_slave.lua b/examples/lua/masterslave/master_slave.lua index 2d32e52ac5..9a7f35435a 100644 --- a/examples/lua/masterslave/master_slave.lua +++ b/examples/lua/masterslave/master_slave.lua @@ -1,16 +1,17 @@ +-- Copyright (c) 2011-2014. The SimGrid Team. +-- All rights reserved. + +-- This program is free software; you can redistribute it and/or modify it +-- under the terms of the license (GNU LGPL) which comes with this package. + dofile 'master.lua' 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.info("Simulation's over. See you.") +-- end-of-master-slave