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
one step further on C++ization of replay
[simgrid.git]
/
examples
/
msg
/
actions-comm
/
actions-comm.c
diff --git
a/examples/msg/actions-comm/actions-comm.c
b/examples/msg/actions-comm/actions-comm.c
index
b5dcc48
..
9379174
100644
(file)
--- a/
examples/msg/actions-comm/actions-comm.c
+++ b/
examples/msg/actions-comm/actions-comm.c
@@
-5,7
+5,7
@@
#include "simgrid/msg.h"
#include "simgrid/simix.h" /* semaphores for the barrier */
#include "simgrid/msg.h"
#include "simgrid/simix.h" /* semaphores for the barrier */
-#include <xbt/replay.h>
+#include <xbt/replay.h
pp
>
XBT_LOG_NEW_DEFAULT_CATEGORY(actions, "Messages specific for this msg example");
int communicator_size = 0;
XBT_LOG_NEW_DEFAULT_CATEGORY(actions, "Messages specific for this msg example");
int communicator_size = 0;
@@
-280,8
+280,6
@@
static void action_finalize(const char *const *action)
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- msg_error_t res = MSG_OK;
-
/* Check the given arguments */
MSG_init(&argc, argv);
/* Explicit initialization of the action module is required now*/
/* Check the given arguments */
MSG_init(&argc, argv);
/* Explicit initialization of the action module is required now*/
@@
-312,7
+310,7
@@
int main(int argc, char *argv[])
xbt_replay_action_register("compute", action_compute);
/* Actually do the simulation using MSG_action_trace_run */
xbt_replay_action_register("compute", action_compute);
/* Actually do the simulation using MSG_action_trace_run */
-
res = MSG_action_trace_run(argv[3]);
// it's ok to pass a NULL argument here
+
msg_error_t res = MSG_action_trace_run(argv[3]);
// it's ok to pass a NULL argument here
XBT_INFO("Simulation time %g", MSG_get_clock());
XBT_INFO("Simulation time %g", MSG_get_clock());