]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use a slightly smaller time step that is actually stable.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Sep 2008 18:55:49 +0000 (18:55 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Sep 2008 18:55:49 +0000 (18:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@16860 0785d39b-7218-0410-832d-ea1e28bc413d

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

index db3be88046d668337c90c5de5d2de93b14d061c4..e550f9b7c30f0f8ff4de78e48abb909bb2a54413 100644 (file)
@@ -1826,7 +1826,7 @@ void BoussinesqFlowProblem<dim>::solve ()
   }
 
   old_time_step = time_step;    
-  time_step = 1./(std::sqrt(2.)*dim*std::sqrt(1.*dim)) /
+  time_step = 1./(1.6*dim*std::sqrt(1.*dim)) /
              temperature_degree *
              GridTools::minimal_cell_diameter(triangulation) /
               std::max (get_maximal_velocity(), .01);

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.