]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-32: simplify temperature calculation.
authorTimo Heister <timo.heister@gmail.com>
Sun, 23 Jan 2011 21:38:17 +0000 (21:38 +0000)
committerTimo Heister <timo.heister@gmail.com>
Sun, 23 Jan 2011 21:38:17 +0000 (21:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@23250 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 068f301e6d2a30439ce618230df4171bb1f942b0..5e10d8ad8cc2c243c048179614170f664c0a5f58 100644 (file)
@@ -1135,12 +1135,8 @@ BoussinesqFlowProblem<dim>::get_extrapolated_temperature_range () const
 
   if (timestep_number != 0)
     {
-      double min_local_temperature = (1. + time_step/old_time_step) *
-                                    old_temperature_solution.linfty_norm()
-                                    +
-                                    time_step/old_time_step *
-                                    old_old_temperature_solution.linfty_norm(),
-            max_local_temperature = -min_local_temperature;
+      double min_local_temperature = 1e30,
+            max_local_temperature = -1e30;
 
       typename DoFHandler<dim>::active_cell_iterator
        cell = temperature_dof_handler.begin_active(),

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.