]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Output the range of temperatures. Use minimal degree to build patches.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Aug 2008 16:50:32 +0000 (16:50 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Aug 2008 16:50:32 +0000 (16:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@16628 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 56999c62d50a96946e3b9d7204d4ede34043467b..f2ec9726eca50e59be90e2e077ee1b762d43a467 100644 (file)
@@ -2144,7 +2144,10 @@ void BoussinesqFlowProblem<dim>::solve ()
               << solver_control.last_step()
               << " CG iterations for temperature."
               << std::endl;
-    std::cout << "   Max temperature: "
+    std::cout << "   Temperature range: "
+             << *std::min_element (temperature_solution.begin(),
+                                   temperature_solution.end())
+             << ' '
              << *std::max_element (temperature_solution.begin(),
                                    temperature_solution.end())
              << std::endl;
@@ -2229,7 +2232,7 @@ void BoussinesqFlowProblem<dim>::output_results ()  const
   data_out.add_data_vector (joint_solution, joint_solution_names,
                            DataOut<dim>::type_dof_data,
                            data_component_interpretation);
-  data_out.build_patches (std::max(stokes_degree, temperature_degree));
+  data_out.build_patches (std::min(stokes_degree, temperature_degree));
 
   std::ostringstream filename;
   filename << "solution-" << Utilities::int_to_string(timestep_number, 4) << ".vtk";

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.