From: Martin Quinson Date: Sat, 27 Aug 2016 13:01:35 +0000 (+0200) Subject: make it possible to start this example without parameters X-Git-Tag: v3_14~479 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/85ef40ae60f69070f3ad07b6927d403902e857c8?hp=6c619fe932602290423c6a789c2aa034ae9f1cad make it possible to start this example without parameters --- diff --git a/examples/msg/cloud-simple/cloud-simple.c b/examples/msg/cloud-simple/cloud-simple.c index 3af0a8c8c1..7129ee5c9d 100644 --- a/examples/msg/cloud-simple/cloud-simple.c +++ b/examples/msg/cloud-simple/cloud-simple.c @@ -270,8 +270,10 @@ int main(int argc, char *argv[]) MSG_init(&argc, argv); /* load the platform file */ - xbt_assert(argc == 2); - MSG_create_environment(argv[1]); + const char* platform = "../../platforms/small_platform.xml"; + if (argc == 2) + platform = argv[1]; + MSG_create_environment(platform); msg_host_t pm0 = MSG_host_by_name("Fafard"); launch_master(pm0);