From: bangerth Date: Thu, 21 Aug 2008 16:50:32 +0000 (+0000) Subject: Output the range of temperatures. Use minimal degree to build patches. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c347ec61b9ca45e74baedef70803d2cbc8446aba;p=dealii-svn.git 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 --- 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";