Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[appveyor] let's try MSVC
[simgrid.git] / examples / lua / masterslave / master.lua
index 84dd241..0cd88bc 100644 (file)
@@ -1,3 +1,9 @@
+-- Copyright (c) 2011-2012, 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.
+
 function Master(...) 
 
   if #arg ~= 4 then
@@ -13,7 +19,7 @@ function Master(...)
 
   for i = 1, nb_task do
     local task = simgrid.task.new("Task " .. i, comp_size, comm_size)
-    local task_name = task:name()
+    local task_name = task:get_name()
     local alias = "slave " .. (i % slave_count)
     simgrid.info("Sending  '" .. task_name .. "' to '" .. alias .."'")
     task:send(alias) -- C user data set to NULL
@@ -30,5 +36,5 @@ function Master(...)
     finalize:send(alias)
   end
   simgrid.info("Everything's done.")
-end -- Master
+end -- end_of_master