diff --git a/tests/testPeriodicBC.c b/tests/testPeriodicBC.c index adc08c80f3891fc858b04122e3b1e04a686d78a7..19faf252745e18624f9ed5d2a3cbfc42098ef49e 100644 --- a/tests/testPeriodicBC.c +++ b/tests/testPeriodicBC.c @@ -211,7 +211,8 @@ void end_calculation(struct cell *c) { /** * @brief Dump all the particles to a file */ -void dump_particle_fields(char *fileName, struct cell *main_cell, int i, int j, int k) { +void dump_particle_fields(char *fileName, struct cell *main_cell, int i, int j, + int k) { FILE *file = fopen(fileName, "a"); /* Write header */ @@ -221,7 +222,8 @@ void dump_particle_fields(char *fileName, struct cell *main_cell, int i, int j, "ID", "pos_x", "pos_y", "pos_z", "v_x", "v_y", "v_z", "rho", "rho_dh", "wcount", "wcount_dh", "div_v", "curl_vx", "curl_vy", "curl_vz"); - fprintf(file, "# Centre cell at (i,j,k)=(%d, %d, %d) ---------------------\n", i,j,k); + fprintf(file, "# Centre cell at (i,j,k)=(%d, %d, %d) ---------------------\n", + i, j, k); /* Write main cell */ for (int pid = 0; pid < main_cell->count; pid++) { @@ -369,7 +371,8 @@ void test_boundary_conditions(struct cell **cells, struct runner runner, end_calculation(main_cell); /* Dump */ - dump_particle_fields(bruteForceOutputFileName, main_cell, loc_i, loc_j, loc_k); + dump_particle_fields(bruteForceOutputFileName, main_cell, loc_i, loc_j, + loc_k); } /* And go... */ diff --git a/tests/tolerance_periodic_BC_normal.dat b/tests/tolerance_periodic_BC_normal.dat index 16fabafc0f59eec30cc1ce2b368d20d10562c6d1..a7e8bfdaef6d3b4e49708e624042ef975b9e8e42 100644 --- a/tests/tolerance_periodic_BC_normal.dat +++ b/tests/tolerance_periodic_BC_normal.dat @@ -1,4 +1,4 @@ # ID pos_x pos_y pos_z v_x v_y v_z rho rho_dh wcount wcount_dh div_v curl_vx curl_vy curl_vz - 0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 4e-6 4e-5 2e-4 3e-3 2e-4 1e-4 1e-4 1e-4 - 0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 2e-4 1e-4 1e-4 5e-4 2e-3 2e-3 2e-3 + 0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 4e-6 4e-5 3e-4 3e-3 2e-4 1e-4 1e-4 1e-4 + 0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 2e-6 2e-4 1e-4 1e-4 6e-4 2e-3 2e-3 2e-3 0 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-4 1e-6 1e-4 5e-4 2e-4 2e-4 2e-4