Topic outline

    • This tarball contains the source code for the vector addition examples and gravitational potential exercise.

      The src/exercise directory contains two Python programs to test and benchmark the different solutions for the gravitational potential exercise; the solution functions are in the gravity_calculators subdirectory. To get the code working, a Python environment with NumPy, CuPy, and Numba is neede. The Sapporo N-body library has to be downloaded and patched before it can be used here, this is done automatically by the get_sapporo.sh script in the sapporo2 directory.

    • [Please log in as an enrolled student to see recording and slides]