Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename the basic s4u example to 'launching'
[simgrid.git] / examples / s4u / launching / s4u_launching_deployment.cpp
1 /* Copyright (c) 2006-2016. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include <string>
7 #include <vector>
8
9 #include <xbt/sysdep.h>
10 #include <simgrid/s4u.hpp>
11
12 #include "s4u_launching.h"
13
14 int main(int argc, char **argv) {
15   simgrid::s4u::Engine *e = new simgrid::s4u::Engine(&argc,argv);
16   e->loadPlatform("../../platforms/two_hosts.xml");
17   e->registerFunction<Worker>("worker");
18   e->registerFunction<Master>("master");
19   e->loadDeployment(argv[1]);
20   e->run();
21   return 0;
22 }