From baec0ffdff48c8cfa4a5e7f7c927e94af29f1707 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Tue, 5 Mar 2019 20:52:14 +0100 Subject: [PATCH] Update the function signatures in the unit tests following the modifications in the main code. --- examples/Cooling/CoolingRates/cooling_rates.c | 2 +- src/runner.h | 2 +- tests/test125cells.c | 4 ++-- tests/test27cellsStars.c | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/Cooling/CoolingRates/cooling_rates.c b/examples/Cooling/CoolingRates/cooling_rates.c index f96701f4c5..e7ff034085 100644 --- a/examples/Cooling/CoolingRates/cooling_rates.c +++ b/examples/Cooling/CoolingRates/cooling_rates.c @@ -16,7 +16,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************/ -#include "../config.h" +#include "config.h" /* Some standard headers. */ #include <fenv.h> diff --git a/src/runner.h b/src/runner.h index 6af0cd2273..60466dc922 100644 --- a/src/runner.h +++ b/src/runner.h @@ -77,7 +77,7 @@ void runner_do_drift_part(struct runner *r, struct cell *c, int timer); void runner_do_drift_gpart(struct runner *r, struct cell *c, int timer); void runner_do_kick1(struct runner *r, struct cell *c, int timer); void runner_do_kick2(struct runner *r, struct cell *c, int timer); -void runner_do_end_force(struct runner *r, struct cell *c, int timer); +void runner_do_end_hydro_force(struct runner *r, struct cell *c, int timer); void runner_do_init(struct runner *r, struct cell *c, int timer); void runner_do_cooling(struct runner *r, struct cell *c, int timer); void runner_do_grav_external(struct runner *r, struct cell *c, int timer); diff --git a/tests/test125cells.c b/tests/test125cells.c index 3b49e71163..7fc743725a 100644 --- a/tests/test125cells.c +++ b/tests/test125cells.c @@ -809,7 +809,7 @@ int main(int argc, char *argv[]) { timings[26] += getticks() - self_tic; /* Finally, give a gentle kick */ - runner_do_end_force(&runner, main_cell, 0); + runner_do_end_hydro_force(&runner, main_cell, 0); const ticks toc = getticks(); time += toc - tic; @@ -960,7 +960,7 @@ int main(int argc, char *argv[]) { self_all_force(&runner, main_cell); /* Finally, give a gentle kick */ - runner_do_end_force(&runner, main_cell, 0); + runner_do_end_hydro_force(&runner, main_cell, 0); // runner_do_kick2(&runner, main_cell, 0); const ticks toc = getticks(); diff --git a/tests/test27cellsStars.c b/tests/test27cellsStars.c index 0377fc49ed..d94de68932 100644 --- a/tests/test27cellsStars.c +++ b/tests/test27cellsStars.c @@ -382,7 +382,6 @@ int main(int argc, char *argv[]) { struct stars_props stars_p; stars_p.eta_neighbours = h; stars_p.h_tolerance = 1e0; - stars_p.h_max = FLT_MAX; stars_p.max_smoothing_iterations = 1; struct engine engine; -- GitLab