Fix pair vec
Merge request reports
Activity
Added 1 commit:
- 28cb441d - Call the branching dopair1_density function in test125cells.c.
Added 1 commit:
- 34f4318d - Code formatting. Elimination of unused variable. Missing documentation parameters.
Added 1 commit:
- 78243006 - Updated tolerances for the test 27 when running with a perturbed smoothing length.
I was getting seg faults until I added 28cb441d. How does it only happen sometimes?
Added 1 commit:
- 8fc942df - Missing update in the tolerance file
Now I get this:
Running ./test125cells -n 6 -r 1 -d 0.1 -v 0 -p 2 -f perturbed [00000.0] main: Adiabatic index: ga = 1.666667 [00000.0] main: Hydro implementation: Gadget-2 version of SPH (Springel 2005) [00000.0] main: Smoothing length: h = 1.234850 [00000.0] main: Kernel: Cubic spline (M4) [00000.0] main: Neighbour target: N = 48.000916 [00000.0] main: Density target: rho = 2.500000 [00000.0] main: div_v target: div = 0.000000 [00000.0] main: curl_v target: curl = [0., 0., 0.000000] [00000.0] main: P field divergent [00000.1] main: SWIFT calculation took : 138485970 ticks. [00000.5] main: Brute force calculation took : 1037994753 ticks. Tolerances read from file Checking the first 216 particles. Relative difference larger than tolerance (5.000000e-03) for particle 13468, column a_x: File 1: a = -5.579833e-05 File 2: b = -5.682989e-05 Difference: |a-b|/|a+b| = 9.158983e-0
Should I expect things to have changed in the test_125 ?
The problem is because I've added that branching function. So test125cells now calls
runner_dopair1_branch_density
, which calls the scalar or vectorised dopair depending on the orientation of the cells. Whereas before, you were callingrunner_dopair1_density
directly which can't be done now unless you first calculate the sid and shift variables.Added 1 commit:
- 0099b465 - Temporarily increased tolerance for perturbed 125 test case. Need a better difffloat.py script.
Please register or sign in to reply