Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename create to init. add init with name only. add setters
[simgrid.git] / examples / cpp / operation-variable-load / s4u-operation-variable-load.cpp
index 2144807..9eea3da 100644 (file)
@@ -44,8 +44,8 @@ int main(int argc, char* argv[])
   auto jupiter  = e.host_by_name("Jupiter");
 
   // Create operations
-  auto comm = simgrid::plugins::CommOp::create("comm", 1e7, tremblay, jupiter);
-  auto exec = simgrid::plugins::ExecOp::create("exec", 1e9, jupiter);
+  auto comm = simgrid::plugins::CommOp::init("comm", 1e7, tremblay, jupiter);
+  auto exec = simgrid::plugins::ExecOp::init("exec", 1e9, jupiter);
 
   // Create the graph by defining dependencies between operations
   comm->add_successor(exec);