From: Wolfgang Bangerth Date: Thu, 22 Sep 2011 13:24:39 +0000 (+0000) Subject: Move variable declarations. X-Git-Tag: v8.0.0~3434 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05d826ce5630d73f705955239a9ae2d340bdd6bb;p=dealii.git Move variable declarations. git-svn-id: https://svn.dealii.org/trunk@24366 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 b9c9152473..edc253b3f3 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -1798,16 +1798,16 @@ void BoussinesqFlowProblem::project_temperature_field () Vector cell_vector (dofs_per_cell); FullMatrix matrix_for_bc (dofs_per_cell, dofs_per_cell); - typename DoFHandler::active_cell_iterator - cell = temperature_dof_handler.begin_active(), - endc = temperature_dof_handler.end(); - std::vector rhs_values(n_q_points); TrilinosWrappers::MPI::Vector rhs (temperature_mass_matrix.row_partitioner()), solution (temperature_mass_matrix.row_partitioner()); + typename DoFHandler::active_cell_iterator + cell = temperature_dof_handler.begin_active(), + endc = temperature_dof_handler.end(); + for (; cell!=endc; ++cell) if (cell->subdomain_id() == Utilities::System::get_this_mpi_process(MPI_COMM_WORLD))