Skip to content
GitLab
Menu
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
babb5691
Commit
babb5691
authored
Dec 14, 2016
by
James Willis
Browse files
Initialise cj cache along with ci cache.
parent
2b50cf09
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test27cells.c
View file @
babb5691
...
...
@@ -443,6 +443,13 @@ int main(int argc, char *argv[]) {
#if !(defined(MINIMAL_SPH) && defined(WITH_VECTORIZATION))
#ifdef WITH_VECTORIZATION
runner
.
par_cache
.
count
=
0
;
cache_init
(
&
runner
.
par_cache
,
512
);
cj_cache
.
count
=
0
;
cache_init
(
&
cj_cache
,
512
);
#endif
/* Run all the pairs */
for
(
int
j
=
0
;
j
<
27
;
++
j
)
{
if
(
cells
[
j
]
!=
main_cell
)
{
...
...
@@ -456,11 +463,6 @@ int main(int argc, char *argv[]) {
}
/* And now the self-interaction */
#ifdef WITH_VECTORIZATION
runner
.
par_cache
.
count
=
0
;
cache_init
(
&
runner
.
par_cache
,
512
);
#endif
const
ticks
self_tic
=
getticks
();
DOSELF1
(
&
runner
,
main_cell
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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