From ff426b4c6a5e7a588f42d5a73d7c7275cbb911f3 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 9 Oct 2017 14:55:16 +0200 Subject: [PATCH] Pass a function pointer by adress instead of by value --- source/sundials/arkode.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sundials/arkode.cc b/source/sundials/arkode.cc index abd5d307c6..ff2afbad10 100644 --- a/source/sundials/arkode.cc +++ b/source/sundials/arkode.cc @@ -376,8 +376,8 @@ namespace SUNDIALS ExcFunctionNotProvided("explicit_function || implicit_function")); status = ARKodeInit(arkode_mem, - explicit_function ? t_arkode_explicit_function : nullptr, - implicit_function ? t_arkode_implicit_function : nullptr, + explicit_function ? &t_arkode_explicit_function : nullptr, + implicit_function ? &t_arkode_implicit_function : nullptr, current_time, yy); AssertARKode(status); -- 2.39.5