From: Wolfgang Bangerth Date: Tue, 14 Apr 2015 21:46:54 +0000 (-0500) Subject: Replace a double loop over cells and indices by a single loop and the use of cell... X-Git-Tag: v8.3.0-rc1~263^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00fd54a46f3372da5e44b775723e3905514bb3a7;p=dealii.git Replace a double loop over cells and indices by a single loop and the use of cell->active_cell_index(). --- diff --git a/source/dofs/dof_tools.cc b/source/dofs/dof_tools.cc index 0f845024e9..1185eccf8d 100644 --- a/source/dofs/dof_tools.cc +++ b/source/dofs/dof_tools.cc @@ -1069,8 +1069,8 @@ namespace DoFTools typename DH::active_cell_iterator cell = dof_handler.begin_active(), endc = dof_handler.end(); - for (unsigned int index=0; cell!=endc; ++cell, ++index) - active_fe_indices[index] = cell->active_fe_index(); + for (; cell!=endc; ++cell) + active_fe_indices[cell->active_cell_index()] = cell->active_fe_index(); }