Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
7685c1af92f4a5b51ac11a41ff86c293fda2b5de
[simgrid.git] / src / msg / msg_config.c
1 /*     $Id$      */
2   
3 /* Copyright (c) 2002-2007 Arnaud Legrand.                                  */
4 /* Copyright (c) 2007 Bruno Donassolo.                                      */
5 /* All rights reserved.                                                     */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9   
10 #include "msg/private.h"
11 #include "xbt/sysdep.h"
12 #include "xbt/log.h"
13 #include "simix/simix.h"
14
15 /** \brief set a configuration variable
16  * 
17  * Currently existing configuation variable:
18  *   - surf_workstation_model (string): Model of workstation to use.  
19  *     Possible values (defaults to "KCCFLN05"):
20  *     - "CLM03": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03]) + support for parallel tasks
21  *     - "KCCFLN05": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03]) + failure handling + interference between communications and computations if precised in the platform file.
22  * 
23  * Example:
24  * MSG_config("surf_workstation_model","KCCFLN05");
25  */
26 void MSG_config(const char *name, ...) {
27   
28   if (!msg_global) {
29      fprintf(stderr, "ERROR: Please call MSG_init() before using MSG_config()\n");
30      abort();
31   }
32    
33    
34   va_list pa;
35   /*  xbt_cfg_dump("msg_cfg_set","",_msg_cfg_set);*/
36   va_start(pa,name);
37         SIMIX_config(name,pa);
38   va_end(pa);
39         return;
40 }