X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d947ff7466b473eeec602007934f8336a9b17f3c..ae7b97e49ebca15dfe00e0f463d1573a7bd44cc9:/src/simix/smx_deployment.c diff --git a/src/simix/smx_deployment.c b/src/simix/smx_deployment.c index 5cb246b375..766658e230 100644 --- a/src/simix/smx_deployment.c +++ b/src/simix/smx_deployment.c @@ -76,6 +76,11 @@ static void parse_process(sg_platf_process_cbarg_t process) current_property_set = NULL; } +void SIMIX_init_application(void){ + surf_parse_reset_callbacks(); + sg_platf_process_add_cb(parse_process); +} + /** * \brief An application deployer. * @@ -98,9 +103,7 @@ void SIMIX_launch_application(const char *file) xbt_assert(simix_global, "SIMIX_global_init has to be called before SIMIX_launch_application."); - surf_parse_reset_callbacks(); - - sg_platf_process_add_cb(parse_process); + SIMIX_init_application(); surf_parse_open(file); TRY {