From: bangerth Date: Wed, 17 Oct 2007 19:48:48 +0000 (+0000) Subject: Compute the time step the correct way. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d1ab8e245fa90cbc684733406ca620d98a77614;p=dealii-svn.git Compute the time step the correct way. git-svn-id: https://svn.dealii.org/trunk@15341 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-22/step-22.cc b/deal.II/examples/step-22/step-22.cc index c08c0d5f14..5dfb2cbad3 100644 --- a/deal.II/examples/step-22/step-22.cc +++ b/deal.II/examples/step-22/step-22.cc @@ -788,7 +788,7 @@ void BoussinesqFlowProblem::solve () A_inverse.vmult (solution.block(0), tmp); } - time_step = std::pow(0.5, double(n_refinement_steps)) / + time_step = GridTools::minimal_cell_diameter(triangulation) / std::max(get_maximal_velocity(),1.); assemble_rhs_T ();