A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[trace] checking if the user created the environment previously
[simgrid.git]
/
src
/
instr
/
instr_variables.c
diff --git
a/src/instr/instr_variables.c
b/src/instr/instr_variables.c
index
f7c497e
..
8cd1703
100644
(file)
--- 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) {
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;
char new_type[INSTR_DEFAULT_STR_SIZE];
xbt_dict_cursor_t cursor = NULL;
char *type;