]> https://gitweb.dealii.org/ - dealii.git/commitdiff
initialize Du to correct size
authorPatrick Esser <Patrick.Esser@gmx.net>
Thu, 21 Apr 2016 13:29:26 +0000 (15:29 +0200)
committerPatrick Esser <Patrick.Esser@gmx.net>
Thu, 21 Apr 2016 13:33:37 +0000 (15:33 +0200)
include/deal.II/algorithms/newton.templates.h

index 9a844e74b26f31b28d890284841a90579ca0d1c0..254563f2d3b7eaf95649998e7d12e0401cca7dc2 100644 (file)
@@ -107,6 +107,7 @@ namespace Algorithms
     typename VectorMemory<VectorType>::Pointer Du(mem);
     typename VectorMemory<VectorType>::Pointer res(mem);
 
+    Du->reinit(u);
     res->reinit(u);
     AnyData src1;
     AnyData src2;

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.