https://github.com/phdenzel/dydama
A simple particle code to study the dynamics of dark matter
https://github.com/phdenzel/dydama
c dark-matter particle-simulation solar-system
Last synced: 17 days ago
JSON representation
A simple particle code to study the dynamics of dark matter
- Host: GitHub
- URL: https://github.com/phdenzel/dydama
- Owner: phdenzel
- License: mit
- Created: 2017-03-21T19:47:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T07:36:31.000Z (almost 9 years ago)
- Last Synced: 2025-11-19T23:03:24.238Z (7 months ago)
- Topics: c, dark-matter, particle-simulation, solar-system
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DYDAMA - DYnamics of DArk MAtter
A simple particle code that came to life while studying the dynamics of dark matter clumps. However it can be used to study various other objects such the planets in the solar system.
To compile the code, `cd` into the directory and type
```bash
make dydama
```
Prerequisite is the GNU compiler `gcc-6`. Make according adjustments to the `Makefile` if you want to use another compiler.
Another requirement is the c-library ``, for real-time graphics.
### Side note
If the code crashes and gives a `bus error: 10`, the non-main pthread stack size might be too small.
MacOS is particularly prone to this problem. Luckily, it is easily bypassed by adding
```bash
export GOMP_STACKSIZE=16384
```
or something equivalent for non-GNU compilers to your `.bash_profile`, `.bashrc`, or some equivalent dotfile.