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
stop being a stupidly rushing boar (hopefuly)
[simgrid.git]
/
examples
/
python
/
actor-suspend
/
actor-suspend.py
diff --git
a/examples/python/actor-suspend/actor-suspend.py
b/examples/python/actor-suspend/actor-suspend.py
index 2be51213270b5441fe7997cc99b641a0981d2302..1aa545dc9470cc9a7a69a3d5005722c9a635bcae 100644
(file)
--- a/
examples/python/actor-suspend/actor-suspend.py
+++ b/
examples/python/actor-suspend/actor-suspend.py
@@
-1,10
+1,14
@@
-# Copyright (c) 2017-202
1
. The SimGrid Team. All rights reserved.
+# Copyright (c) 2017-202
3
. 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 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.
-from simgrid import Actor, Engine, this_actor
+"""
+Usage: actor-suspend.py platform_file [other parameters]
+"""
+
import sys
import sys
+from simgrid import Actor, Engine, this_actor
def lazy_guy():
def lazy_guy():
@@
-75,7
+79,7
@@
if __name__ == '__main__':
"Usage: actor-suspend.py platform_file [other parameters]")
e.load_platform(sys.argv[1]) # Load the platform description
"Usage: actor-suspend.py platform_file [other parameters]")
e.load_platform(sys.argv[1]) # Load the platform description
- hosts = e.
get_all_hosts()
+ hosts = e.
all_hosts
Actor.create("dream_master", hosts[0], dream_master)
e.run() # Run the simulation
Actor.create("dream_master", hosts[0], dream_master)
e.run() # Run the simulation