diff --git a/exercice_4/README.md b/exercice_4/README.md index d6aeb16..c94586b 100644 --- a/exercice_4/README.md +++ b/exercice_4/README.md @@ -1,38 +1,38 @@ # Readme exercice 4 code by Marti Bosch (marti.bosch@epfl.ch) and Marc Schwaerzel (marc.schwaerzel@epfl.ch) ## Exercise 1 ## Exercise 2 -2.2 We will probably have to use a shared pointer in order that the memory is managed well?! -2.3 I used the method where I put setters but there is a way to access private members --> reread class notes and implement them +2.2 We used shared pointers for the pybind compute and compute temperature classes in order not to have issued with the memory allocation. +2.3 I used the method where I put setters directely in the compute_temperature.py but there is a way to access private members --> reread class notes and implement them ## Exercise 3 ## Instructions to run the code To run the code follow the instructions: 1) Create a new directory in the exercice_4 directory and go into that folder: $ mkdir build $ cd build 2) Check whether your paths are set correctly $ ccmake ../ 2) Compile the code: $ cmake ../ $ make 3) Then run as follows $ ./particles --help Usage: ./particles nsteps dump_freq input.csv particle_type timestep particle type can be: planet, ping_pong, material_point