]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Back down again on the time step -- this wasn't the problem with stability.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 19 Aug 2009 03:16:25 +0000 (03:16 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 19 Aug 2009 03:16:25 +0000 (03:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@19308 0785d39b-7218-0410-832d-ea1e28bc413d

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

index f1f46a3a61efff9905d1bd587cc4f76ec3a8d83b..a702b6cd9cc1341441fd0a78d0c6a211ecd9e264 100644 (file)
@@ -2684,12 +2684,12 @@ void BoussinesqFlowProblem<dim>::solve ()
   old_time_step = time_step;
   const double maximal_velocity = get_maximal_velocity();
   if (maximal_velocity > 1e-10)
-    time_step = 1./(1.8*dim*std::sqrt(1.*dim)) /
+    time_step = 1./(1.6*dim*std::sqrt(1.*dim)) /
                temperature_degree *
                GridTools::minimal_cell_diameter(triangulation) /
                maximal_velocity;
   else
-    time_step = 1./(1.8*dim*std::sqrt(1.*dim)) /
+    time_step = 1./(1.6*dim*std::sqrt(1.*dim)) /
                temperature_degree *
                GridTools::minimal_cell_diameter(triangulation) /
                1e-10;

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.