- THROW1(arg_error, 0, "%s", msg);
+ THROWF(arg_error, 0, "%s", msg);
xbt_lib_cursor_t cursor = NULL;
char *name = NULL;
void **host = NULL;
xbt_lib_foreach(host_lib, cursor, name, host){
if(host[SIMIX_HOST_LEVEL])
xbt_lib_cursor_t cursor = NULL;
char *name = NULL;
void **host = NULL;
xbt_lib_foreach(host_lib, cursor, name, host){
if(host[SIMIX_HOST_LEVEL])
- xbt_dict_set(host_dict,name,host[SIMIX_HOST_LEVEL],NULL);
+ xbt_dict_set(host_dict,name,host[SIMIX_HOST_LEVEL], NULL);
return surf_workstation_model->extension.workstation.get_properties(host->host);
}
double SIMIX_host_get_speed(smx_host_t host)
{
return surf_workstation_model->extension.workstation.get_properties(host->host);
}
double SIMIX_host_get_speed(smx_host_t host)
{
return surf_workstation_model->extension.workstation.
get_speed(host->host, 1.0);
return surf_workstation_model->extension.workstation.
get_speed(host->host, 1.0);
- xbt_assert0((host != NULL), "Invalid parameters");
- xbt_assert0((host->data == NULL), "Data already set");
+ xbt_assert((host != NULL), "Invalid parameters");
+ xbt_assert((host->data == NULL), "Data already set");
smx_req_t req;
xbt_fifo_foreach(action->request_list, item, req, smx_req_t) {
smx_req_t req;
xbt_fifo_foreach(action->request_list, item, req, smx_req_t) {
- XBT_DEBUG("SIMIX_execution_finished: host '%s' failed", req->issuer->smx_host->name);
- THROW0(host_error, 0, "Host failed");
+ THROWF(host_error, 0, "Host failed");
- XBT_DEBUG("SIMIX_execution_finished: execution canceled");
- THROW0(cancel_error, 0, "Canceled");
+ THROWF(cancel_error, 0, "Canceled");
/* FIXME: check if the host running the action failed or not*/
/*if(surf_workstation_model->extension.workstation.get_state(action->host->host))*/
/* FIXME: check if the host running the action failed or not*/
/*if(surf_workstation_model->extension.workstation.get_state(action->host->host))*/
if (surf_workstation_model->action_state_get(action->execution.surf_exec) == SURF_ACTION_FAILED)
action->state = SIMIX_CANCELED;
else
if (surf_workstation_model->action_state_get(action->execution.surf_exec) == SURF_ACTION_FAILED)
action->state = SIMIX_CANCELED;
else