]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a bug in transfering the solution.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Aug 2008 05:42:14 +0000 (05:42 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Aug 2008 05:42:14 +0000 (05:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@16595 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-31/step-31.cc

index 08f3682145d053218f7b7f82646327ea26268189..bbdabaccb1a6bdb20b5c5d65bab4e9f47689a0c2 100644 (file)
@@ -2206,8 +2206,7 @@ void BoussinesqFlowProblem<dim>::refine_mesh (const unsigned int max_grid_level)
   soltrans.interpolate(x_solution, tmp);
 
   temperature_solution = tmp[0];
-                                  //TODO: this should be [1]!!!!!!!
-  old_temperature_solution = tmp[0];
+  old_temperature_solution = tmp[1];
 
   rebuild_matrices       = true;
   rebuild_preconditioner = true;

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.