-
-/**
- * gras_init:
- * @argc:
- * @argv:
- *
- * Initialize the gras mecanisms.
- */
-void
-gras_init(int argc,char **argv) {
- int i;
- char *opt;
- gras_error_t errcode;
-
- INFO0("Initialize GRAS");
- for (i=1; i<argc; i++) {
- if (!strncmp(argv[i],"--gras-log=",strlen("--gras-log="))) {
- opt=strchr(argv[i],'=');
- opt++;
- TRYFAIL(gras_log_control_set(opt));
- }
- }
+/** @brief Initialize the xbt mechanisms. */
+void
+xbt_init(int *argc, char **argv) {
+ static short int first_run = 1;
+ if (!first_run)
+ return;
+
+ first_run = 0;
+ VERB0("Initialize XBT");
+
+ xbt_log_init(argc,argv);