From 5532dfd8907bba901f29427582435f5903977833 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 22 Sep 2011 13:24:39 +0000 Subject: [PATCH] Move variable declarations. git-svn-id: https://svn.dealii.org/trunk@24366 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-32/step-32.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) -- 2.39.5