From 128919a3efe3760fa8906cfd0ba60cc0b1e29c6b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 3 Aug 2016 07:16:02 -0600 Subject: [PATCH] Make control flow easier to read. --- source/dofs/dof_tools.cc | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) 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