From: kronbichler Date: Wed, 30 Mar 2011 14:17:25 +0000 (+0000) Subject: Circumvent case where one processor has no data. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d22c95540406799f423ac0108e5491af271fc8e;p=dealii-svn.git Circumvent case where one processor has no data. git-svn-id: https://svn.dealii.org/trunk@23546 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 14b35753a0..12f4105763 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -3062,9 +3062,9 @@ void BoussinesqFlowProblem::solve () // extract temperature range std::vector temperature (2), global_temperature (2); - temperature[0] = distributed_temperature_solution.trilinos_vector()[0][0], - temperature[1] = temperature[0]; - for (unsigned int i=1; i::max(), + temperature[1] = -std::numeric_limits::max(); + for (unsigned int i=0; i (temperature[0], distributed_temperature_solution.trilinos_vector()[0][i]);