From: Wolfgang Bangerth Date: Wed, 3 Aug 2016 13:16:02 +0000 (-0600) Subject: Make control flow easier to read. X-Git-Tag: v8.5.0-rc1~811^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2911%2Fhead;p=dealii.git Make control flow easier to read. --- diff --git a/source/dofs/dof_tools.cc b/source/dofs/dof_tools.cc index b71591635c..ed38ec8d7d 100644 --- a/source/dofs/dof_tools.cc +++ b/source/dofs/dof_tools.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 1999 - 2015 by the deal.II authors +// Copyright (C) 1999 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -2074,28 +2074,26 @@ namespace DoFTools block_list.reinit(i, dof_handler.n_dofs(), dof_handler.get_fe().dofs_per_cell); i=0; for (cell=dof_handler.begin(level); cell != endc; ++cell) - { - if (!cell->is_locally_owned_on_level()) - continue; - - indices.resize(cell->get_fe().dofs_per_cell); - cell->get_mg_dof_indices(indices); + if (cell->is_locally_owned_on_level()) + { + indices.resize(cell->get_fe().dofs_per_cell); + cell->get_mg_dof_indices(indices); - if (selected_dofs.size()!=0) - AssertDimension(indices.size(), selected_dofs.size()); + if (selected_dofs.size()!=0) + AssertDimension(indices.size(), selected_dofs.size()); - for (types::global_dof_index j=0; j