-
- Downloads
Merge branch 'fix_super_pointer' into 'master'
Fix super pointer Updated the logic setting the `super` pointer and creating the "hierarchical" tasks (i.e. init, kick, ghost, etc.). Changes involve: - Getting rid of the `g_super` pointer. We have only one `super` cell per hierarchy. - Set the `super` pointer in a new routine. - Have only one routine to construct the hierarchical task to avoid overwriting things. - Moved the external gravity task to be a self with a new kind of sub-type. The last item is necessary for the following reason. If we want to run with only external gravity (no hydro, no normal gravity), which is useful to test this aspect individually, we need to create the tasks. Now, we only create the init/kick tasks for super cells, i.e. cells that have at least one self or pair. So I promoted the external_gravity task to be a self with a new sub_type. IMO that's more clean now. What do you think ? Fix #215. See merge request !259
No related branches found
No related tags found
Showing
- examples/ExternalPointMass/run.sh 1 addition, 1 deletionexamples/ExternalPointMass/run.sh
- src/cell.c 20 additions, 0 deletionssrc/cell.c
- src/cell.h 2 additions, 6 deletionssrc/cell.h
- src/engine.c 126 additions, 121 deletionssrc/engine.c
- src/runner.c 14 additions, 9 deletionssrc/runner.c
- src/scheduler.c 4 additions, 14 deletionssrc/scheduler.c
- src/space.c 0 additions, 3 deletionssrc/space.c
- src/task.c 26 additions, 10 deletionssrc/task.c
- src/task.h 2 additions, 1 deletionsrc/task.h
Loading
Please register or sign in to comment