Commit 55e67f34 authored by James Willis's avatar James Willis
Browse files

Called vectorised doself1 if vectorisation turned on.

parent 35069140
...@@ -257,6 +257,7 @@ void dump_particle_fields(char *fileName, struct cell *main_cell, ...@@ -257,6 +257,7 @@ void dump_particle_fields(char *fileName, struct cell *main_cell,
/* Just a forward declaration... */ /* Just a forward declaration... */
void runner_dopair1_density(struct runner *r, struct cell *ci, struct cell *cj); void runner_dopair1_density(struct runner *r, struct cell *ci, struct cell *cj);
void runner_doself1_density(struct runner *r, struct cell *ci); void runner_doself1_density(struct runner *r, struct cell *ci);
void runner_doself1_density_vec(struct runner *r, struct cell *ci);
/* And go... */ /* And go... */
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
...@@ -386,8 +387,10 @@ int main(int argc, char *argv[]) { ...@@ -386,8 +387,10 @@ int main(int argc, char *argv[]) {
runner_dopair1_density(&runner, main_cell, cells[j]); runner_dopair1_density(&runner, main_cell, cells[j]);
/* And now the self-interaction */ /* And now the self-interaction */
#ifdef WITH_VECTORIZATION
runner_doself1_density_vec(&runner, main_cell);
#else
runner_doself1_density(&runner, main_cell); runner_doself1_density(&runner, main_cell);
#endif #endif
const ticks toc = getticks(); const ticks toc = getticks();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment