X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/16af0d72b0e253727842d8b4e3d3397b21cd8f73..2851c17a93adcd3931c937b698b65f81400c6dc3:/src/simix/smx_host.c diff --git a/src/simix/smx_host.c b/src/simix/smx_host.c index a247d6096a..2308f27d4b 100644 --- a/src/simix/smx_host.c +++ b/src/simix/smx_host.c @@ -301,7 +301,7 @@ smx_action_t SIMIX_host_execute(const char *name, smx_host_t host, #endif /* set surf's action */ - if (!MC_IS_ENABLED) { + if (!MC_is_active()) { action->execution.surf_exec = surf_workstation_model->extension.workstation.execute(host->host, computation_amount); @@ -339,7 +339,7 @@ smx_action_t SIMIX_host_parallel_execute( const char *name, workstation_list[i] = host_list[i]->host; /* set surf's action */ - if (!MC_IS_ENABLED) { + if (!MC_is_active()) { action->execution.surf_exec = surf_workstation_model->extension.workstation. execute_parallel_task(host_nb, workstation_list, computation_amount, @@ -404,7 +404,7 @@ void SIMIX_pre_host_execution_wait(smx_simcall_t simcall) simcall->issuer->waiting_action = action; /* set surf's action */ - if (MC_IS_ENABLED) { + if (MC_is_active()) { action->state = SIMIX_DONE; SIMIX_execution_finish(action); return;