From: David Wells Date: Wed, 3 Aug 2016 02:43:15 +0000 (-0400) Subject: Remove unused const casts. X-Git-Tag: v8.5.0-rc1~810^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2910%2Fhead;p=dealii.git Remove unused const casts. make_flux_sparsity_pattern no longer uses on user flags so we do not need to load and save them. --- diff --git a/doc/news/changes.h b/doc/news/changes.h index c46542fe13..90465076c4 100644 --- a/doc/news/changes.h +++ b/doc/news/changes.h @@ -412,6 +412,14 @@ SparsityPattern.

Specific improvements

    +
  1. Improved: The regular and hp versions of + DoFTools::make_flux_sparsity_pattern() no longer use the user flags of the + underlying triangulation to determine if entries along a certain face have been + added to the sparsity pattern. +
    + (David Wells, 2016/03/02 - 2016/08/02) +
  2. +
  3. Improved: DoFTools::make_cell_patches() can create block lists only extending over local cells of distributed triangulations.
    diff --git a/source/dofs/dof_tools_sparsity.cc b/source/dofs/dof_tools_sparsity.cc index 1ac28b71b6..4bede2c111 100644 --- a/source/dofs/dof_tools_sparsity.cc +++ b/source/dofs/dof_tools_sparsity.cc @@ -1252,23 +1252,10 @@ namespace DoFTools "associated DoF handler objects, asking for any subdomain other " "than the locally owned one does not make sense.")); - // Clear user flags because we will need them. But first we save them - // and make sure that we restore them later such that at the end of - // this function the Triangulation will be in the same state as it was - // at the beginning of this function. - std::vector user_flags; - dof.get_triangulation().save_user_flags(user_flags); - const_cast &> - (dof.get_triangulation()).clear_user_flags (); - internal::make_flux_sparsity_pattern (dof, sparsity, constraints, keep_constrained_dofs, int_mask, flux_mask, subdomain_id); - - // finally restore the user flags - const_cast &> - (dof.get_triangulation()).load_user_flags(user_flags); }