host.state_trace = simgrid::kernel::profile::Profile::from_file(filename);
lua_pop(L, 1);
- sg_platf_new_host(&host);
+ sg_platf_new_host_begin(&host);
+ sg_platf_new_host_seal(0);
return 0;
}
const char* coords = lua_tostring(L, -1);
lua_pop(L,1);
- sg_platf_new_router(name, coords);
+ sg_platf_new_router(name, coords ? coords : "");
return 0;
}