Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -404,11 +404,15 @@ int main(int argc, char *argv[]) { ...@@ -404,11 +404,15 @@ int main(int argc, char *argv[]) {
space.dim[1] = 3.; space.dim[1] = 3.;
space.dim[2] = 3.; space.dim[2] = 3.;
struct hydro_props hp;
hp.h_max = FLT_MAX;
struct engine engine; struct engine engine;
engine.s = &space; engine.s = &space;
engine.time = 0.1f; engine.time = 0.1f;
engine.ti_current = 8; engine.ti_current = 8;
engine.max_active_bin = num_time_bins; engine.max_active_bin = num_time_bins;
engine.hydro_properties = &hp;
struct runner runner; struct runner runner;
runner.e = &engine; runner.e = &engine;
......
...@@ -107,8 +107,10 @@ int main() { ...@@ -107,8 +107,10 @@ int main() {
Atot = 0.0f; Atot = 0.0f;
/* print the cells to the stdout */ /* print the cells to the stdout */
for (i = 0; i < TESTVORONOI2D_NUMCELL; ++i) { for (i = 0; i < TESTVORONOI2D_NUMCELL; ++i) {
#ifdef VORONOI_VERBOSE
printf("Cell %i:\n", i); printf("Cell %i:\n", i);
voronoi_print_cell(&cells[i]); voronoi_print_cell(&cells[i]);
#endif
voronoi_cell_finalize(&cells[i]); voronoi_cell_finalize(&cells[i]);
Atot += cells[i].volume; Atot += cells[i].volume;
} }
...@@ -185,8 +187,10 @@ int main() { ...@@ -185,8 +187,10 @@ int main() {
Atot = 0.0f; Atot = 0.0f;
/* print the cells to the stdout */ /* print the cells to the stdout */
for (i = 0; i < 100; ++i) { for (i = 0; i < 100; ++i) {
#ifdef VORONOI_VERBOSE
printf("Cell %i:\n", i); printf("Cell %i:\n", i);
voronoi_print_cell(&cells[i]); voronoi_print_cell(&cells[i]);
#endif
voronoi_cell_finalize(&cells[i]); voronoi_cell_finalize(&cells[i]);
Atot += cells[i].volume; Atot += cells[i].volume;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment