]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Populate Tvmult and Tvmult_add of an inverse_operator correctly
authorMatthias Maier <tamiko@43-1.org>
Wed, 30 Dec 2015 17:08:37 +0000 (18:08 +0100)
committerMatthias Maier <tamiko@43-1.org>
Wed, 30 Dec 2015 17:08:37 +0000 (18:08 +0100)
Fix a typo in linear_operator.h: The transpose operation function-object
Tvmult was accidentally overwritten by Tvmult_add (and the latter left
uninitialized).

include/deal.II/lac/linear_operator.h

index eccf331ab16fe8ad8588717cbbe97ea41f94b00d..469145cdba41af5298184b23323d2a002398c359 100644 (file)
@@ -664,7 +664,7 @@ inverse_operator(const LinearOperator<typename Solver::vector_type, typename Sol
     solver.solve(transpose_operator(op), v, u, preconditioner);
   };
 
-  return_op.Tvmult =
+  return_op.Tvmult_add =
     [op, &solver, &preconditioner](Vector &v, const Vector &u)
   {
     static GrowingVectorMemory<typename Solver::vector_type> vector_memory;

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.