From 7be4244fa0e7b7445de477f492bb4a6706b4c7ab Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 2 Aug 2016 22:43:15 -0400 Subject: [PATCH] Remove unused const casts. make_flux_sparsity_pattern no longer uses on user flags so we do not need to load and save them. --- doc/news/changes.h | 8 ++++++++ source/dofs/dof_tools_sparsity.cc | 13 ------------- 2 files changed, 8 insertions(+), 13 deletions(-) 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); } -- 2.39.5