-
- Downloads
Merge branch 'integer_timeline' into 'master'
Integer timeline This modified the way we do multiple time-steps. The time-steps are now placed on an integer timeline and can take values from 0 to 2^29 where 0 corresponds to the starting point of the simulation and 2^29 is the end point of the simulation. This effectively limits the number of time-steps that can be performed and sets an absolute minimal time-step size. If need be we can later on extend the number of time-steps allowed by switching to a long long but I have not seen this being necessary in any EAGLE or other simulations we ran. However, it prevents the assignment of 0-sized time-steps that occur in the current version of the code when using a final time which is not of the form 2^n (n positive or negative integer). This hence fixes issue #87. Quite a lot of changes scattered across the code but the only non-trivial ones are in runner_dokick() and engine_init(). While working on it I have corrected the count of number of particles updated in a given time-step. This is now correct. Fixes issue #89. Finally, I have also added a message at start-up displaying which version of SPH we run. See merge request !94
Showing
- src/Makefile.am 1 addition, 1 deletionsrc/Makefile.am
- src/cell.c 10 additions, 8 deletionssrc/cell.c
- src/cell.h 3 additions, 2 deletionssrc/cell.h
- src/debug.c 4 additions, 4 deletionssrc/debug.c
- src/engine.c 83 additions, 52 deletionssrc/engine.c
- src/engine.h 17 additions, 6 deletionssrc/engine.h
- src/gravity/Default/gravity_part.h 2 additions, 2 deletionssrc/gravity/Default/gravity_part.h
- src/hydro.h 3 additions, 0 deletionssrc/hydro.h
- src/hydro/Default/hydro.h 10 additions, 8 deletionssrc/hydro/Default/hydro.h
- src/hydro/Default/hydro_debug.h 3 additions, 3 deletionssrc/hydro/Default/hydro_debug.h
- src/hydro/Default/hydro_part.h 2 additions, 2 deletionssrc/hydro/Default/hydro_part.h
- src/hydro/Gadget2/hydro.h 9 additions, 7 deletionssrc/hydro/Gadget2/hydro.h
- src/hydro/Gadget2/hydro_debug.h 2 additions, 2 deletionssrc/hydro/Gadget2/hydro_debug.h
- src/hydro/Gadget2/hydro_part.h 2 additions, 2 deletionssrc/hydro/Gadget2/hydro_part.h
- src/hydro/Minimal/hydro.h 7 additions, 5 deletionssrc/hydro/Minimal/hydro.h
- src/hydro/Minimal/hydro_debug.h 3 additions, 3 deletionssrc/hydro/Minimal/hydro_debug.h
- src/hydro/Minimal/hydro_part.h 2 additions, 2 deletionssrc/hydro/Minimal/hydro_part.h
- src/minmax.h 46 additions, 0 deletionssrc/minmax.h
- src/runner.c 55 additions, 45 deletionssrc/runner.c
- src/runner_doiact.h 44 additions, 44 deletionssrc/runner_doiact.h
Loading
Please register or sign in to comment