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
c106b207
Commit
c106b207
authored
May 26, 2017
by
James Willis
Browse files
Add h_max when computing max_d instead of hi.
parent
2391e879
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact_vec.c
View file @
c106b207
...
...
@@ -305,7 +305,8 @@ __attribute__((always_inline)) INLINE static void populate_max_d_no_cache(
h
=
p
->
h
;
d
=
sort_i
[
k
].
d
+
dx_max
;
max_di
[
k
]
=
d
+
h
*
kernel_gamma
-
rshift
;
//max_di[k] = d + h * kernel_gamma - rshift;
max_di
[
k
]
=
d
+
hi_max
;
/* If the particle is out of range set the index to
* the last active particle within range. */
...
...
@@ -331,7 +332,8 @@ __attribute__((always_inline)) INLINE static void populate_max_d_no_cache(
d
=
sort_j
[
k
].
d
-
dx_max
;
/*TODO: don't think rshift should be taken off here, waiting on Pedro. */
max_dj
[
k
]
=
d
-
h
*
kernel_gamma
-
rshift
;
//max_dj[k] = d - h * kernel_gamma - rshift;
max_dj
[
k
]
=
d
-
hj_max
;
/* If the particle is out of range set the index to
* the last active particle within range. */
...
...
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