From: Daniel Arndt Date: Mon, 9 Oct 2017 12:55:16 +0000 (+0200) Subject: Pass a function pointer by adress instead of by value X-Git-Tag: v9.0.0-rc1~978^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff426b4c6a5e7a588f42d5a73d7c7275cbb911f3;p=dealii.git Pass a function pointer by adress instead of by value --- 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);