From 3d1ab8e245fa90cbc684733406ca620d98a77614 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 17 Oct 2007 19:48:48 +0000 Subject: [PATCH] Compute the time step the correct way. git-svn-id: https://svn.dealii.org/trunk@15341 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-22/step-22.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (); -- 2.39.5