]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove duplicate memory freeing in GMRES
authorfsonner <florian.sonner@iwr.uni-heidelberg.de>
Mon, 27 Apr 2015 16:09:59 +0000 (18:09 +0200)
committerfsonner <florian.sonner@iwr.uni-heidelberg.de>
Mon, 27 Apr 2015 16:09:59 +0000 (18:09 +0200)
include/deal.II/lac/solver_gmres.h

index dbe037f2d2a53798e34d14df1c88a07b20d3fd9a..994d80dfa60ba3c6a9bd83afbde513c20c649275 100644 (file)
@@ -715,10 +715,6 @@ SolverGMRES<VECTOR>::solve (const MATRIX         &A,
 
           if (iteration_state != SolverControl::iterate)
             {
-              this->memory.free(r);
-              this->memory.free(x_);
-
-              delete gamma_;
               break;
             }
         }

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.