exsp4e/exercice_418ba65ba9f74master
exsp4e/exercice_4
18ba65ba9f74master
exercice_4
exercice_4
README.md
README.md
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 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:
- Create a new directory in the exercice_4 directory and go into that folder:
$ mkdir build $ cd build
- Check whether your paths are set correctly
$ ccmake ../
- Compile the code:
$ cmake ../ $ make
- 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
c4science · Help