Skip to content
Snippets Groups Projects
Commit 17f83e58 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Post-merge fixes

parent 46d7d0ab
Branches
Tags
2 merge requests!212Gravity infrastructure,!172[WIP] Self gravity (Barnes-Hut version)
...@@ -1731,12 +1731,13 @@ void engine_maketasks(struct engine *e) { ...@@ -1731,12 +1731,13 @@ void engine_maketasks(struct engine *e) {
/* Loop through the proxy's incoming cells and add the /* Loop through the proxy's incoming cells and add the
recv tasks. */ recv tasks. */
for (int k = 0; k < p->nr_cells_in; k++) for (int k = 0; k < p->nr_cells_in; k++)
engine_addtasks_recv(e, p->cells_in[k], NULL, NULL); engine_addtasks_recv(e, p->cells_in[k], NULL, NULL, NULL);
/* Loop through the proxy's outgoing cells and add the /* Loop through the proxy's outgoing cells and add the
send tasks. */ send tasks. */
for (int k = 0; k < p->nr_cells_out; k++) for (int k = 0; k < p->nr_cells_out; k++)
engine_addtasks_send(e, p->cells_out[k], p->cells_in[0]); engine_addtasks_send(e, p->cells_out[k], p->cells_in[0], NULL, NULL,
NULL);
} }
} }
#endif #endif
...@@ -1869,8 +1870,7 @@ int engine_marktasks(struct engine *e) { ...@@ -1869,8 +1870,7 @@ int engine_marktasks(struct engine *e) {
continue; continue;
/* Set the sort flags. */ /* Set the sort flags. */
if (t->type == task_type_pair && if (t->type == task_type_pair && t->subtype != task_subtype_grav) {
t->subtype != task_subtype_grav) {
if (!(ci->sorted & (1 << t->flags))) { if (!(ci->sorted & (1 << t->flags))) {
ci->sorts->flags |= (1 << t->flags); ci->sorts->flags |= (1 << t->flags);
ci->sorts->skip = 0; ci->sorts->skip = 0;
......
...@@ -88,8 +88,8 @@ const char runner_flip[27] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, ...@@ -88,8 +88,8 @@ const char runner_flip[27] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
#include "runner_doiact.h" #include "runner_doiact.h"
/* Import the gravity loop functions. */ /* Import the gravity loop functions. */
#include "runner_doiact_grav.h"
#include "runner_doiact_fft.h" #include "runner_doiact_fft.h"
#include "runner_doiact_grav.h"
/** /**
* @brief Calculate gravity acceleration from external potential * @brief Calculate gravity acceleration from external potential
...@@ -1155,7 +1155,7 @@ void *runner_main(void *data) { ...@@ -1155,7 +1155,7 @@ void *runner_main(void *data) {
case task_type_grav_gather_m: case task_type_grav_gather_m:
break; break;
case task_type_grav_fft: case task_type_grav_fft:
runner_do_grav_fft(r); runner_do_grav_fft(r);
break; break;
case task_type_grav_external: case task_type_grav_external:
runner_do_grav_external(r, t->ci, 1); runner_do_grav_external(r, t->ci, 1);
......
...@@ -33,7 +33,4 @@ ...@@ -33,7 +33,4 @@
/* Local includes. */ /* Local includes. */
#include "runner.h" #include "runner.h"
void runner_do_grav_fft(struct runner *r) { void runner_do_grav_fft(struct runner *r) {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment