diff --git a/tests/test125cells.c b/tests/test125cells.c index e6bf35cd29270b97dcd771dbedb5f8c26bd8a325..6df500f05c254ed9b6686956dce1a07588318e35 100644 --- a/tests/test125cells.c +++ b/tests/test125cells.c @@ -48,6 +48,8 @@ #define DOPAIR2_NAME "runner_dopair2_force" #endif +#define NODE_ID 1 + enum velocity_field { velocity_zero, velocity_const, @@ -356,6 +358,7 @@ struct cell *make_cell(size_t n, const double offset[3], double size, double h, cell->ti_old_part = 8; cell->ti_hydro_end_min = 8; cell->ti_hydro_end_max = 8; + cell->nodeID = NODE_ID; // shuffle_particles(cell->parts, cell->count); @@ -589,6 +592,7 @@ int main(int argc, char *argv[]) { engine.time = 0.1f; engine.ti_current = 8; engine.max_active_bin = num_time_bins; + engine.nodeID = NODE_ID; struct runner runner; runner.e = &engine; diff --git a/tests/test27cells.c b/tests/test27cells.c index 1952103634104d89b955ed1c47b0836d894ef533..fea8b5858b8f595209a08c51bbfb744c4f73f68e 100644 --- a/tests/test27cells.c +++ b/tests/test27cells.c @@ -57,6 +57,8 @@ #define DOPAIR1_NAME "runner_dopair1_density" #endif +#define NODE_ID 1 + enum velocity_types { velocity_zero, velocity_random, @@ -184,6 +186,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h, cell->ti_old_part = 8; cell->ti_hydro_end_min = 8; cell->ti_hydro_end_max = 8; + cell->nodeID = NODE_ID; shuffle_particles(cell->parts, cell->count); @@ -431,6 +434,7 @@ int main(int argc, char *argv[]) { engine.ti_current = 8; engine.max_active_bin = num_time_bins; engine.hydro_properties = &hp; + engine.nodeID = NODE_ID; struct runner runner; runner.e = &engine; diff --git a/tests/testActivePair.c b/tests/testActivePair.c index e9367db302a32130df84e4381d1ab255681504de..5d0e210ce23f941ac16173ce2b2531b7aedf19ba 100644 --- a/tests/testActivePair.c +++ b/tests/testActivePair.c @@ -29,6 +29,8 @@ /* Local headers. */ #include "swift.h" +#define NODE_ID 1 + /* Typdef function pointer for interaction function. */ typedef void (*interaction_func)(struct runner *, struct cell *, struct cell *); @@ -143,6 +145,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h, cell->ti_old_part = 8; cell->ti_hydro_end_min = 8; cell->ti_hydro_end_max = 10; + cell->nodeID = NODE_ID; shuffle_particles(cell->parts, cell->count); @@ -502,6 +505,7 @@ int main(int argc, char *argv[]) { engine.time = 0.1f; engine.ti_current = 8; engine.max_active_bin = num_time_bins; + engine.nodeID = NODE_ID; if (posix_memalign((void **)&runner, SWIFT_STRUCT_ALIGNMENT, sizeof(struct runner)) != 0) { diff --git a/tests/testPeriodicBC.c b/tests/testPeriodicBC.c index f3687eac6be87cd60c12404c19916c8101c42dc1..53337e499673a7ac92c1e7ce3e0da189e9e76f06 100644 --- a/tests/testPeriodicBC.c +++ b/tests/testPeriodicBC.c @@ -49,6 +49,8 @@ #define DOPAIR1_NAME "runner_dopair1_density" #endif +#define NODE_ID 1 + enum velocity_types { velocity_zero, velocity_random, @@ -173,6 +175,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h, cell->ti_old_part = 8; cell->ti_hydro_end_min = 8; cell->ti_hydro_end_max = 8; + cell->nodeID = NODE_ID; shuffle_particles(cell->parts, cell->count); @@ -485,6 +488,7 @@ int main(int argc, char *argv[]) { engine.ti_current = 8; engine.max_active_bin = num_time_bins; engine.hydro_properties = &hp; + engine.nodeID = NODE_ID; struct runner runner; runner.e = &engine;