X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5707630f4aaebdc50607bd6896677388eb373499..a8ee9ffc2584f27805105408cbed642136f1b677:/src/msg/msg_config.c diff --git a/src/msg/msg_config.c b/src/msg/msg_config.c index 46fe08d257..5bb0763674 100644 --- a/src/msg/msg_config.c +++ b/src/msg/msg_config.c @@ -1,12 +1,12 @@ /* $Id$ */ - + /* Copyright (c) 2002-2007 Arnaud Legrand. */ /* Copyright (c) 2007 Bruno Donassolo. */ /* All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ - + #include "msg/private.h" #include "xbt/sysdep.h" #include "xbt/log.h" @@ -15,7 +15,7 @@ /** \brief set a configuration variable * * Currently existing configuation variable: - * - surf_workstation_model (string): Model of workstation to use. + * - workstation_model (string): Model of workstation to use. * Possible values (defaults to "KCCFLN05"): * - "CLM03": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03]) + support for parallel tasks * - "KCCFLN05": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03]) + failure handling + interference between communications and computations if precised in the platform file. @@ -25,22 +25,24 @@ * - "KCCFLN05_Reno": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03]) + failure handling + interference between communications and computations if precised in the platform file. Uses the fairness adapted to the TCP Reno flow control. * * Example: - * MSG_config("surf_workstation_model","KCCFLN05"); + * MSG_config("workstation_model","KCCFLN05"); */ -void MSG_config(const char *name, ...) { - +void MSG_config(const char *name, ...) +{ + if (!msg_global) { - fprintf(stderr, "ERROR: Please call MSG_init() before using MSG_config()\n"); - abort(); + fprintf(stderr, + "ERROR: Please call MSG_init() before using MSG_config()\n"); + abort(); } - - + + va_list pa; - /* xbt_cfg_dump("msg_cfg_set","",_msg_cfg_set);*/ - va_start(pa,name); - - SIMIX_config(name,pa); - + /* xbt_cfg_dump("msg_cfg_set","",_msg_cfg_set); */ + va_start(pa, name); + + SIMIX_config(name, pa); + va_end(pa); - return; + return; }