-
- Downloads
Merge branch 'energy_conservation' into 'master'
Correct the equation for the entropy time derivative in GADGET2_SPH This fixes #183 meaning that energy is now correctly conserved. It also: - Adds a parameter file and run script for the perturbed box test case. - Adds entropy to the diagnostics file. - Replace the MPI_AllReduce in the statistics collection by an MPI_Reduce since only rank 0 writes anyway. - Gives a better documentation for the `approx_exp()` function. - Adds an accuracy test for the approximate maths functions (currently only exp()) - Adds a test no make sure the symmetric and non-symmetric versions of the SPH interaction routines give the same answer. That was the origin of the energy non-conservation bug. See merge request !210
Branches
Tags
Showing
- .gitignore 2 additions, 0 deletions.gitignore
- examples/PerturbedBox/makeIC.py 7 additions, 6 deletionsexamples/PerturbedBox/makeIC.py
- examples/PerturbedBox/perturbedBox.yml 35 additions, 0 deletionsexamples/PerturbedBox/perturbedBox.yml
- examples/PerturbedBox/run.sh 10 additions, 0 deletionsexamples/PerturbedBox/run.sh
- src/approx_math.h 6 additions, 2 deletionssrc/approx_math.h
- src/cell.h 1 addition, 1 deletionsrc/cell.h
- src/engine.c 20 additions, 13 deletionssrc/engine.c
- src/hydro/Gadget2/hydro_iact.h 1 addition, 1 deletionsrc/hydro/Gadget2/hydro_iact.h
- src/runner.c 6 additions, 1 deletionsrc/runner.c
- tests/Makefile.am 10 additions, 6 deletionstests/Makefile.am
- tests/testMaths.c 67 additions, 0 deletionstests/testMaths.c
- tests/testSymmetry.c 111 additions, 0 deletionstests/testSymmetry.c
Loading
Please register or sign in to comment