Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove explicit conversion to std::string when it's not required.
[simgrid.git] / docs / source / Tutorial_Algorithms.rst
index 0f7c379..7d9ca41 100644 (file)
@@ -408,10 +408,14 @@ recompile it when you first log in:
 
 .. code-block:: console
 
-   $ cp -r /source/simgrid-template-s4u.git/* /source/tutorial
-   $ cd /source/tutorial
-   $ cmake .
-   $ make
+   $ # Make sure the simgrid-tutorial directory can be read and written by the non-root user
+   $ sudo chown $UID:$GID ~/simgrid-tutorial
+   $ # Connect to the running container if needed
+   $ docker exec --user $UID:$GID -ti simgrid bash
+   $container) cp -r /source/simgrid-template-s4u.git/* /source/tutorial
+   $container) cd /source/tutorial
+   $container) cmake .
+   $container) make
 
 Using your Computer Natively
 ............................
@@ -632,8 +636,8 @@ information is only written once. It thus follows the `DRY
       .. code-block:: cpp
 
          for (int i = 0; i < tasks_count; i++) {
-            std::string worker_rank          = std::to_string(i % workers_count);
-            std::string mailbox_name         = std::string("worker-") + worker_rank;
+            std::string worker_rank        = std::to_string(i % workers_count);
+            std::string mailbox_name       = "worker-" + worker_rank;
             simgrid::s4u::Mailbox* mailbox = simgrid::s4u::Mailbox::by_name(mailbox_name);
 
             mailbox->put(...);