#include "gras/Virtu/virtu_sg.h"
-const char *gras_os_myname(void) {
- return MSG_host_get_name(MSG_host_self());
+const char *gras_os_myname(void)
+{
+ smx_host_t host = SIMIX_host_self();
+ if (host != NULL)
+ return SIMIX_host_get_name(SIMIX_host_self());
+ else
+ return "";
}