X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9bc3931b2204551422f2699e9ff2b01b9fc4468e..99a80b5cd6aeeeb6fd5ab65916c940d43c57e409:/examples/lua/master_slave.lua diff --git a/examples/lua/master_slave.lua b/examples/lua/master_slave.lua index fd4ff4fbaf..1aca1b9282 100644 --- a/examples/lua/master_slave.lua +++ b/examples/lua/master_slave.lua @@ -11,10 +11,6 @@ comp_size = arg[2]; comm_size = arg[3]; slave_count = arg[4] -A = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}} - ---print (A[1][3]) - if (#arg ~= 4) then error("Argc should be 4"); end @@ -42,6 +38,8 @@ end simgrid.info("Master: Everything's done."); end +-- end_of_master + -- Slave Function --------------------------------------------------------- function Slave(...) @@ -63,8 +61,11 @@ end -- while simgrid.info("Slave '" ..my_mailbox.."': I'm Done . See You !!"); -end -- function ---------------------------------------------------------- ---]] +end + +-- end_of_slave + +-- Simulation Code ---------------------------------------------------------- require "simgrid" if (#arg == 2) then