Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
672d04ee
Commit
672d04ee
authored
Sep 26, 2017
by
James Willis
Browse files
Correct position check thresholds in vectorised code.
parent
34b0ebc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cache.h
View file @
672d04ee
...
...
@@ -370,11 +370,11 @@ __attribute__((always_inline)) INLINE void cache_read_two_partial_cells_sorted(
#ifdef SWIFT_DEBUG_CHECKS
const
float
shift_threshold_x
=
4
.
*
ci
->
width
[
0
]
*
(
1
.
+
2
.
*
space_maxreldx
);
2
.
*
ci
->
width
[
0
]
+
max
(
ci
->
dx_max_part
,
cj
->
dx_max_part
);
const
float
shift_threshold_y
=
4
.
*
ci
->
width
[
1
]
*
(
1
.
+
2
.
*
space_maxreldx
);
2
.
*
ci
->
width
[
1
]
+
max
(
ci
->
dx_max_part
,
cj
->
dx_max_part
);
const
float
shift_threshold_z
=
4
.
*
ci
->
width
[
2
]
*
(
1
.
+
2
.
*
space_maxreldx
);
2
.
*
ci
->
width
[
2
]
+
max
(
ci
->
dx_max_part
,
cj
->
dx_max_part
);
/* Make sure that particle positions have been shifted correctly. */
for
(
int
i
=
0
;
i
<
ci_cache_count
;
i
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment