]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Pass a function pointer by adress instead of by value 5216/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 12:55:16 +0000 (14:55 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 13:16:00 +0000 (15:16 +0200)
source/sundials/arkode.cc

index abd5d307c63313b8229f6c9b3f8125d665a1de89..ff2afbad10a95a5a1e5f8ff97847092471fdec35 100644 (file)
@@ -376,8 +376,8 @@ namespace SUNDIALS
            ExcFunctionNotProvided("explicit_function || implicit_function"));
 
     status = ARKodeInit(arkode_mem,
-                        explicit_function ? t_arkode_explicit_function<VectorType> : nullptr,
-                        implicit_function ? t_arkode_implicit_function<VectorType> : nullptr,
+                        explicit_function ? &t_arkode_explicit_function<VectorType> : nullptr,
+                        implicit_function ? &t_arkode_implicit_function<VectorType> : nullptr,
                         current_time, yy);
     AssertARKode(status);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.