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
fd702ff1
Commit
fd702ff1
authored
Nov 29, 2016
by
James Willis
Browse files
Call vectorised version of doself1 if vectorisation turned on.
parent
4fd51fbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
fd702ff1
...
...
@@ -59,6 +59,7 @@
#include
"task.h"
#include
"timers.h"
#include
"timestep.h"
#include
"runner_doiact_vec.h"
/**
* @brief Entry in a list of sorted indices.
...
...
@@ -1155,7 +1156,13 @@ void *runner_main(void *data) {
/* Different types of tasks... */
switch
(
t
->
type
)
{
case
task_type_self
:
if
(
t
->
subtype
==
task_subtype_density
)
runner_doself1_density
(
r
,
ci
);
if
(
t
->
subtype
==
task_subtype_density
)
{
#ifdef WITH_VECTORIZATION
runner_doself1_density_vec
(
r
,
ci
);
#else
runner_doself1_density
(
r
,
ci
);
#endif
}
#ifdef EXTRA_HYDRO_LOOP
else
if
(
t
->
subtype
==
task_subtype_gradient
)
runner_doself1_gradient
(
r
,
ci
);
...
...
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