Skip to content

Commit

Permalink
fix test fixture to initialise all coordinates
Browse files Browse the repository at this point in the history
previously only populated 1/3 of the coordinate array with values...
  • Loading branch information
richardjgowers committed Aug 6, 2024
1 parent cb34642 commit 0cfe9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdistopia/test/test_fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class CoordinatesIdx : public ::testing::Test {
ref_results = new T[nidx];
results = new T[nidx];

RandomFloatingPoint<T>(coords, ncoords, 0 - delta, boxsize + delta);
RandomFloatingPoint<T>(coords, ncoords * 3, 0 - delta, boxsize + delta);

RandomInt(big_idx, nidx, 0, ncoords);
// copy bigidx into smaller, and also make contig coords array
Expand Down

0 comments on commit 0cfe9e6

Please sign in to comment.