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
[SMPI] Update test output (smpi_replay.tesh)
[simgrid.git]
/
examples
/
lua
/
state_cloner
/
duplicated_globals.lua
diff --git
a/examples/lua/state_cloner/duplicated_globals.lua
b/examples/lua/state_cloner/duplicated_globals.lua
index
516cc77
..
f4df0ae
100644
(file)
--- a/
examples/lua/state_cloner/duplicated_globals.lua
+++ b/
examples/lua/state_cloner/duplicated_globals.lua
@@
-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.
+
-- This code creates 3 simgrid processes and verifies that the global values
-- in each Lua world are correctly cloned from maestro and become different
-- This code creates 3 simgrid processes and verifies that the global values
-- in each Lua world are correctly cloned from maestro and become different
@@
-7,7
+13,7
@@
global_string = "A global string set by maestro"
-- Assigns to the global string the first argument and prints it
function set_global_string(...)
-- Assigns to the global string the first argument and prints it
function set_global_string(...)
-
+
global_string = arg[1]
simgrid.info("Changing the global string")
print_global()
global_string = arg[1]
simgrid.info("Changing the global string")
print_global()
@@
-32,13
+38,12
@@
end
-- Prints the value of global_string
function print_global()
-- Prints the value of global_string
function print_global()
- simgrid.info("Global string is '"
..global_string..
"'")
+ simgrid.info("Global string is '"
.. global_string ..
"'")
end
print_global()
end
print_global()
-simgrid.platform("../../
msg
/small_platform.xml")
+simgrid.platform("../../
platforms
/small_platform.xml")
simgrid.application("deployment_duplicated_globals.xml")
simgrid.run()
simgrid.application("deployment_duplicated_globals.xml")
simgrid.run()
-simgrid.clean()