Commit eb7d9dc2 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Updated test27cells to pass the tests. Updated testVoronoi2D to be less verbose.

parent fd900519
......@@ -404,11 +404,15 @@ int main(int argc, char *argv[]) {
space.dim[1] = 3.;
space.dim[2] = 3.;
struct hydro_props hp;
hp.h_max = FLT_MAX;
struct engine engine;
engine.s = &space;
engine.time = 0.1f;
engine.ti_current = 8;
engine.max_active_bin = num_time_bins;
engine.hydro_properties = &hp;
struct runner runner;
runner.e = &engine;
......
......@@ -107,8 +107,10 @@ int main() {
Atot = 0.0f;
/* print the cells to the stdout */
for (i = 0; i < TESTVORONOI2D_NUMCELL; ++i) {
#ifdef VORONOI_VERBOSE
printf("Cell %i:\n", i);
voronoi_print_cell(&cells[i]);
#endif
voronoi_cell_finalize(&cells[i]);
Atot += cells[i].volume;
}
......@@ -185,8 +187,10 @@ int main() {
Atot = 0.0f;
/* print the cells to the stdout */
for (i = 0; i < 100; ++i) {
#ifdef VORONOI_VERBOSE
printf("Cell %i:\n", i);
voronoi_print_cell(&cells[i]);
#endif
voronoi_cell_finalize(&cells[i]);
Atot += cells[i].volume;
}
......
Markdown is supported
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