-/* Copyright (c) 2008-2010, 2012-2015, 2017. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2008-2017. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
static void host()
{
char name[2048];
- int id = simgrid::s4u::this_actor::pid();
+ int id = simgrid::s4u::this_actor::getPid();
snprintf(name, 2048, "%s%i", FILENAME1, id);
simgrid::s4u::File* file = new simgrid::s4u::File(name, NULL);
XBT_INFO("process %d is writing!", id);
int main(int argc, char** argv)
{
simgrid::s4u::Engine* e = new simgrid::s4u::Engine(&argc, argv);
+ sg_storage_file_system_init();
e->loadPlatform(argv[1]);
for (int i = 0; i < 5; i++)
e->run();
XBT_INFO("Simulation time %g", e->getClock());
+ delete e;
return 0;
}