Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mv trace-platform from MSG to S4U
[simgrid.git] / examples / s4u / trace-platform / s4u-trace-platform.cpp
diff --git a/examples/s4u/trace-platform/s4u-trace-platform.cpp b/examples/s4u/trace-platform/s4u-trace-platform.cpp
new file mode 100644 (file)
index 0000000..b448b0e
--- /dev/null
@@ -0,0 +1,14 @@
+/* Copyright (c) 2010, 2012-2016. 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. */
+
+#include "simgrid/s4u.hpp"
+
+int main(int argc, char* argv[])
+{
+  simgrid::s4u::Engine e(&argc, argv);
+  e.loadPlatform(argv[1]);
+  e.run();
+  return 0;
+}