]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize SUN* objects 6412/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 1 May 2018 09:01:24 +0000 (11:01 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 1 May 2018 09:13:08 +0000 (11:13 +0200)
source/sundials/kinsol.cc

index e1817e7f3369422ffbfe9aba6fd1ec03943cdc51..5661507f0d6dac8257c3bf75bfa29f63dec1c848 100644 (file)
@@ -265,8 +265,8 @@ namespace SUNDIALS
     AssertKINSOL(status);
 
 #if DEAL_II_SUNDIALS_VERSION_GTE(3,0,0)
-    SUNMatrix J;
-    SUNLinearSolver LS;
+    SUNMatrix J = nullptr;
+    SUNLinearSolver LS = nullptr;
 #endif
 
     if (solve_jacobian_system)

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.