- if( !strcmp(struct_cluster->V_cluster_availability_file,"")
- || !strcmp(struct_cluster->V_cluster_state_file,"") ){
+ if( strcmp(struct_cluster->V_cluster_availability_file,"")
+ || strcmp(struct_cluster->V_cluster_state_file,"") )
+ {
xbt_dict_set(patterns,"id",struct_cluster->V_cluster_id,NULL);
xbt_dict_set(patterns,"prefix",struct_cluster->V_cluster_prefix,NULL);
xbt_dict_set(patterns,"suffix",struct_cluster->V_cluster_suffix,NULL);
xbt_dict_set(patterns,"id",struct_cluster->V_cluster_id,NULL);
xbt_dict_set(patterns,"prefix",struct_cluster->V_cluster_prefix,NULL);
xbt_dict_set(patterns,"suffix",struct_cluster->V_cluster_suffix,NULL);
XBT_DEBUG("<host\tid=\"%s\"\tpower=\"%f\">", host_id, struct_cluster->S_cluster_power);
struct_host = xbt_new0(s_hostSG_t, 1);
struct_host->V_host_id = host_id;
XBT_DEBUG("<host\tid=\"%s\"\tpower=\"%f\">", host_id, struct_cluster->S_cluster_power);
struct_host = xbt_new0(s_hostSG_t, 1);
struct_host->V_host_id = host_id;
xbt_dict_set(patterns, "radical", bprintf("%d", start), xbt_free);
char* tmp_availability_file = xbt_strdup(struct_cluster->V_cluster_availability_file);
xbt_str_varsubst(tmp_availability_file,patterns);
xbt_dict_set(patterns, "radical", bprintf("%d", start), xbt_free);
char* tmp_availability_file = xbt_strdup(struct_cluster->V_cluster_availability_file);
xbt_str_varsubst(tmp_availability_file,patterns);
char *tmp_state_file = xbt_strdup(struct_cluster->V_cluster_state_file);
xbt_str_varsubst(tmp_state_file,patterns);
XBT_DEBUG("\tstate_file=\"%s\"",tmp_state_file);
char *tmp_state_file = xbt_strdup(struct_cluster->V_cluster_state_file);
xbt_str_varsubst(tmp_state_file,patterns);
XBT_DEBUG("\tstate_file=\"%s\"",tmp_state_file);
XBT_DEBUG("<host\tid=\"%s\"\tpower=\"%f\">", host_id, struct_cluster->S_cluster_power);
struct_host = xbt_new0(s_hostSG_t, 1);
struct_host->V_host_id = host_id;
XBT_DEBUG("<host\tid=\"%s\"\tpower=\"%f\">", host_id, struct_cluster->S_cluster_power);
struct_host = xbt_new0(s_hostSG_t, 1);
struct_host->V_host_id = host_id;
xbt_dict_set(patterns, "radical", bprintf("%d", i), xbt_free);
char* tmp_availability_file = xbt_strdup(struct_cluster->V_cluster_availability_file);
xbt_str_varsubst(tmp_availability_file,patterns);
xbt_dict_set(patterns, "radical", bprintf("%d", i), xbt_free);
char* tmp_availability_file = xbt_strdup(struct_cluster->V_cluster_availability_file);
xbt_str_varsubst(tmp_availability_file,patterns);
char *tmp_state_file = xbt_strdup(struct_cluster->V_cluster_state_file);
xbt_str_varsubst(tmp_state_file,patterns);
XBT_DEBUG("\tstate_file=\"%s\"",tmp_state_file);
char *tmp_state_file = xbt_strdup(struct_cluster->V_cluster_state_file);
xbt_str_varsubst(tmp_state_file,patterns);
XBT_DEBUG("\tstate_file=\"%s\"",tmp_state_file);
- if( !strcmp(struct_cluster->V_cluster_availability_file,"")
- || !strcmp(struct_cluster->V_cluster_state_file,"") )
+ if( strcmp(struct_cluster->V_cluster_availability_file,"")
+ || strcmp(struct_cluster->V_cluster_state_file,"") )