Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug corrected when compiling using --enable-simix.
authordonassbr <donassbr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 27 Apr 2007 08:57:21 +0000 (08:57 +0000)
committerdonassbr <donassbr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 27 Apr 2007 08:57:21 +0000 (08:57 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3464 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/gras/stub_generator.c

index 8f05f00..5bd5375 100644 (file)
@@ -432,14 +432,17 @@ static void generate_sim(char *project)
        fprintf(OUT,
 #ifdef USE_SIMIX               
        "  gras_create_environment(argv[1]);\n" 
+       "\n" 
+       "  /*  Application deployment */\n"
+       );
 #else          
        "  MSG_paje_output(\"%s.trace\");\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"
-#endif         
        "\n" 
        "  /*  Application deployment */\n",
        project);
+#endif         
        xbt_dict_foreach(process_function_set,cursor,key,data) {
 #ifdef USE_SIMIX          
                fprintf(OUT,"  gras_function_register(\"%s\", launch_%s);\n",key,key);