Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New example for MSG host ON/OFF switching
[simgrid.git] / examples / lua / multi_matrix / sender.lua
index bdf535f..16166ff 100644 (file)
@@ -1,3 +1,9 @@
+-- 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.
+
 function Sender(...) 
 
   simgrid.info("Hello From Sender")
@@ -20,7 +26,7 @@ function Sender(...)
   task['matrix_1'] = m1
   task['matrix_2'] = m2
   task['size'] = size
-  simgrid.info("Sending " .. simgrid.task.name(task) .. " to " .. simgrid.host.name(receiver))
+  simgrid.info("Sending " .. simgrid.task.get_name(task) .. " to " .. simgrid.host.name(receiver))
   simgrid.task.send(task, rec_alias)
   simgrid.info("Got the Multiplication result ...Bye")
 end