Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use XBT_MAX_CHANNEL in generated simulators since this constant also lives in xbt...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 1 Dec 2005 14:29:03 +0000 (14:29 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 1 Dec 2005 14:29:03 +0000 (14:29 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1845 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/gras/stub_generator.c

index e4affce..da7fb8a 100644 (file)
@@ -173,7 +173,7 @@ static void generate_sim(char *project)
                      "\n");
    fprintf(OUT, 
           "  MSG_paje_output(\"%s.trace\");\n" 
-          "  MSG_set_channel_number(10); /* Using at most 10 channel (ports) per host. Change it here if needed */\n" 
+          "  MSG_set_channel_number(XBT_MAX_CHANNEL); /* Using at most 10 channel (ports) per host. Change it here if needed */\n" 
           "  MSG_create_environment(argv[1]);\n" 
           "\n" 
           "  /*  Application deployment */\n",