X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eabfa4dc55d315110f03cd2c7e2e47de92438411..5bbaff717e42ffed60d22407a7ccb811457852ea:/src/instr/instr_variables.c diff --git a/src/instr/instr_variables.c b/src/instr/instr_variables.c index f7c497eafa..8cd1703161 100644 --- a/src/instr/instr_variables.c +++ b/src/instr/instr_variables.c @@ -61,6 +61,12 @@ void TRACE_user_host_variable(double time, const char *variable, snprintf(valuestr, 100, "%g", value); if (strcmp(what, "declare") == 0) { + { + //check if hosts have been created + xbt_assert1 (hosts_types != NULL && xbt_dict_length(hosts_types) != 0, + "%s must be called after environment creation", __FUNCTION__); + } + char new_type[INSTR_DEFAULT_STR_SIZE]; xbt_dict_cursor_t cursor = NULL; char *type;