Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Oops. Forgot to commit the header.
[simgrid.git] / src / simix / private.h
index 88655fe..bc0eccf 100644 (file)
@@ -104,8 +104,8 @@ typedef struct s_smx_simdata_action {
 /******************************* Other **********************************/
 
 
-#define SIMIX_CHECK_HOST()  xbt_assert0(surf_workstation_model->extension_public-> \
-                                 get_state(SIMIX_host_self()->simdata->host)==SURF_CPU_ON,\
+#define SIMIX_CHECK_HOST()  xbt_assert0(surf_workstation_model->extension.workstation. \
+                                 get_state(SIMIX_host_self()->simdata->host)==SURF_RESOURCE_ON,\
                                   "Host failed, you cannot call this function.")
 
 smx_host_t __SIMIX_host_create(const char *name, void *workstation,