From c347ec61b9ca45e74baedef70803d2cbc8446aba Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 21 Aug 2008 16:50:32 +0000 Subject: [PATCH] Output the range of temperatures. Use minimal degree to build patches. git-svn-id: https://svn.dealii.org/trunk@16628 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-31/step-31.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deal.II/examples/step-31/step-31.cc b/deal.II/examples/step-31/step-31.cc index 56999c62d5..f2ec9726ec 100644 --- a/deal.II/examples/step-31/step-31.cc +++ b/deal.II/examples/step-31/step-31.cc @@ -2144,7 +2144,10 @@ void BoussinesqFlowProblem::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::output_results () const data_out.add_data_vector (joint_solution, joint_solution_names, DataOut::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"; -- 2.39.5