Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ea85c906bf6c2743fa64ae16abeec0fac708b06a
[simgrid.git] / examples / c / app-chainsend / chainsend.c
1 /* Copyright (c) 2007-2022. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "chainsend.h"
8
9 XBT_LOG_NEW_DEFAULT_CATEGORY(chainsend, "Messages specific for chainsend");
10
11 int main(int argc, char* argv[])
12 {
13   simgrid_init(&argc, argv);
14
15   simgrid_load_platform(argv[1]);
16
17   /*   Application deployment */
18   simgrid_register_function("broadcaster", broadcaster);
19   simgrid_register_function("peer", peer);
20
21   simgrid_load_deployment(argv[2]);
22
23   simgrid_run();
24   XBT_INFO("Total simulation time: %e", simgrid_get_clock());
25
26   return 0;
27 }