X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ed37babb2fa9097abe82df299c0aa259ed84d5a..b5ce35d0a47049999d7a28185745a2a37e01d7c3:/examples/cpp/actor-create/s4u-actor-create.cpp diff --git a/examples/cpp/actor-create/s4u-actor-create.cpp b/examples/cpp/actor-create/s4u-actor-create.cpp index df712864f8..a3c1f38690 100644 --- a/examples/cpp/actor-create/s4u-actor-create.cpp +++ b/examples/cpp/actor-create/s4u-actor-create.cpp @@ -90,7 +90,7 @@ int main(int argc, char** argv) sg4::Engine e(&argc, argv); /* Then you should load a platform file, describing your simulated platform */ - e.load_platform("../../platforms/small_platform.xml"); + e.load_platform(argc > 1 ? argv[1] : "../../platforms/small_platform.xml"); /* And now you have to ask SimGrid to actually start your actors. * @@ -118,7 +118,7 @@ int main(int argc, char** argv) e.register_actor("sender"); // The sender class is passed as a template parameter here e.register_function("forwarder", &forwarder); /* Once actors and functions are registered, just load the deployment file */ - e.load_deployment("s4u-actor-create_d.xml"); + e.load_deployment(argc > 2 ? argv[2] : "s4u-actor-create_d.xml"); /* Once every actors are started in the engine, the simulation can start */ e.run();