/* check if the host is active */
if (surf_workstation_model->extension.
- workstation.get_state(sender->simdata->host) != SURF_CPU_ON) {
+ workstation.get_state(sender->simdata->host) != SURF_RESOURCE_ON) {
THROW1(network_error, 0, "Host %s failed, you cannot call this function",
sender->name);
}
if (surf_workstation_model->extension.
- workstation.get_state(receiver->simdata->host) != SURF_CPU_ON) {
+ workstation.get_state(receiver->simdata->host) != SURF_RESOURCE_ON) {
THROW1(network_error, 0, "Host %s failed, you cannot call this function",
receiver->name);
}
/* check if the host is active */
if (surf_workstation_model->extension.
- workstation.get_state(host->simdata->host) != SURF_CPU_ON) {
+ workstation.get_state(host->simdata->host) != SURF_RESOURCE_ON) {
THROW1(host_error, 0, "Host %s failed, you cannot call this function",
host->name);
}
/* check if the host is active */
if (surf_workstation_model->extension.
- workstation.get_state(host->simdata->host) != SURF_CPU_ON) {
+ workstation.get_state(host->simdata->host) != SURF_RESOURCE_ON) {
THROW1(host_error, 0, "Host %s failed, you cannot call this function",
host->name);
}