]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move variable declarations.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Sep 2011 13:24:39 +0000 (13:24 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Sep 2011 13:24:39 +0000 (13:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@24366 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/step-32.cc

index b9c91524733596e2b440dddab419de27d5238363..edc253b3f3c0959b739f8d4105867c2daf7ad7bd 100644 (file)
@@ -1798,16 +1798,16 @@ void BoussinesqFlowProblem<dim>::project_temperature_field ()
   Vector<double> cell_vector (dofs_per_cell);
   FullMatrix<double> matrix_for_bc (dofs_per_cell, dofs_per_cell);
 
-  typename DoFHandler<dim>::active_cell_iterator
-  cell = temperature_dof_handler.begin_active(),
-  endc = temperature_dof_handler.end();
-
   std::vector<double> rhs_values(n_q_points);
 
   TrilinosWrappers::MPI::Vector
   rhs (temperature_mass_matrix.row_partitioner()),
       solution (temperature_mass_matrix.row_partitioner());
 
+  typename DoFHandler<dim>::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))

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.