]> 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:57:23 +0000 (18:57 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Sep 2008 18:57:23 +0000 (18:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@16861 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ec451be4a2b7ab615cb0b74fd5e1a2ac2322784e..d760a01758d9371ba3dca95afc5a7eb053d0f9f6 100644 (file)
@@ -1272,7 +1272,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(), 1.e-5);

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.