To receive notifications about scheduled maintenance, please subscribe to the mailing-list You can subscribe to the mailing-list at

Commit f42d3a7c authored by dkammer's avatar dkammer
Browse files

remove assignment

parent 89dcf1af
# Assignment
This week we look a bit more into data structures. We work on the same code we have used over the past couple of weeks. The objective here is to learn about iterators and use them to loop over built-in data structures. For this assignment, follow these steps:
1. read about iterators:
1. [](
2. [](
3. [](
2. summarize what you learnt on 1-2 slides
3. evaluate how you could use iterators in the `velverlet` function and summarize on 1-2 slides
4. make the changes and summarize problems/insights/results on slides (keep a copie of for the moment)
5. measure the time for the `velverlet` and compare to previous code. Helpful code to measure time:
1. `#include <chrono> // to time function execution`
2. `auto t1 = std::chrono::high_resolution_clock::now(); // get current time`
3. `auto dt = std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count() // time passed between t1 and t2`
As a reminder: The code is provided in the folder `code`. It can be compile via `cmake`. Follow these steps:
1. `cd code`
2. `mkdir build`
3. `cd build`
4. `ccmake ..`
5. configure and generate
6. `make`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment