X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f43c766932553c0f32c9e681ea5b7032003c29a7..97205f69c3ff45b271a439e9feedd372c587656e:/doc/doxygen/options.doc diff --git a/doc/doxygen/options.doc b/doc/doxygen/options.doc index 1901e91d99..02f6728456 100644 --- a/doc/doxygen/options.doc +++ b/doc/doxygen/options.doc @@ -5,7 +5,9 @@ SimGrid behavior. For a complete list of all configuration options accepted by the SimGrid version used in your simulator, simply pass the --help configuration flag to your program. If some of the options are not documented on this page, this is a bug that you should please -report so that we can fix it. +report so that we can fix it. Note that some of the options presented +here may not be available in your simulators, depending on the +@ref install_src_config "compile-time options" that you used. \section options_using Passing configuration options to the simulators @@ -36,23 +38,28 @@ file: \verbatim \endverbatim A last solution is to pass your configuration directly using the C -interface. Unfortunately, this path is not really easy to use right -now, and you mess directly with surf internal variables as follows. Check the -\ref XBT_config "relevant page" for details on all the functions you -can use in this context, \c _surf_cfg_set being the only configuration set -currently used in SimGrid. \code +interface. If you happen to use the MSG interface, this is very easy +with the MSG_config() function. If you do not use MSG, that's a bit +more complex, as you have to mess with the internal configuration set +directly as follows. Check the \ref XBT_config "relevant page" for +details on all the functions you can use in this context, \c +_sg_cfg_set being the only configuration set currently used in +SimGrid. + +@code #include -extern xbt_cfg_t _surf_cfg_set; +extern xbt_cfg_t _sg_cfg_set; int main(int argc, char *argv[]) { - MSG_init(&argc, argv); + SD_init(&argc, argv); - xbt_cfg_set_parse(_surf_cfg_set,"Item:Value"); + /* Prefer MSG_config() if you use MSG!! */ + xbt_cfg_set_parse(_sg_cfg_set,"Item:Value"); // Rest of your code } -\endcode +@endcode \section options_model Configuring the platform models