A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Lua] Ported multi_matrix code to Lua 5.3
[simgrid.git]
/
examples
/
lua
/
multi_matrix
/
receiver.lua
diff --git
a/examples/lua/multi_matrix/receiver.lua
b/examples/lua/multi_matrix/receiver.lua
index
e771b7a
..
0ecf35b
100644
(file)
--- a/
examples/lua/multi_matrix/receiver.lua
+++ b/
examples/lua/multi_matrix/receiver.lua
@@
-1,8
+1,14
@@
+-- 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 Receiver(...)
simgrid.info("Hello From Receiver")
function Receiver(...)
simgrid.info("Hello From Receiver")
- local sender = simgrid.host.get_by_name(
arg[1]
)
- local send_alias =
arg[2]
+ local sender = simgrid.host.get_by_name(
select(1, ...)
)
+ local send_alias =
select(2, ...)
local recv_alias = "Receiver"
simgrid.info("Receiving Task from " .. simgrid.host.name(sender))
local task = simgrid.task.recv(recv_alias)
local recv_alias = "Receiver"
simgrid.info("Receiving Task from " .. simgrid.host.name(sender))
local task = simgrid.task.recv(recv_alias)