Commit c815239e authored by James Willis's avatar James Willis
Browse files

Added a test which interacts a pair of cells with only one particle each....

Added a test which interacts a pair of cells with only one particle each. Disabled error in shuffle_particles.
parent a4f7feb9
......@@ -512,7 +512,7 @@ void shuffle_particles(struct part *parts, const int count) {
}
} else
error("Array not big enough to shuffle!");
message("Array not big enough to shuffle!");
}
/**
......
......@@ -258,6 +258,18 @@ void test_all_pair_interactions(struct runner *runner, double *offset2,
double offset1[3] = {0, 0, 0};
struct cell *ci, *cj;
/* Only one particle in each cell. */
ci = make_cell(1, offset1, size, h, rho, partId, perturbation, h_pert,
1.);
cj = make_cell(1, offset2, size, h, rho, partId, perturbation, h_pert,
1.);
test_pair_interactions(runner, &ci, &cj, swiftOutputFileName,
bruteForceOutputFileName);
clean_up(ci);
clean_up(cj);
/* All active particles. */
ci = make_cell(particles, offset1, size, h, rho, partId, perturbation, h_pert,
1.);
......
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