From: Daniel Arndt Date: Fri, 2 Feb 2018 09:36:50 +0000 (+0100) Subject: Fix unused variables in dof_handler.cc X-Git-Tag: v9.0.0-rc1~482^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24149ea95dd37963c4272d4f6849969a6cece786;p=dealii.git Fix unused variables in dof_handler.cc --- diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index 01c0c7d428..c3e1074d44 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -597,12 +597,10 @@ namespace internal void reserve_space (DoFHandler<1,spacedim> &dof_handler) { - const unsigned int dim = 1; - Assert (dof_handler.finite_elements != nullptr, - (typename DoFHandler::ExcNoFESelected())); + (typename DoFHandler<1,spacedim>::ExcNoFESelected())); Assert (dof_handler.finite_elements->size() > 0, - (typename DoFHandler::ExcNoFESelected())); + (typename DoFHandler<1,spacedim>::ExcNoFESelected())); Assert (dof_handler.tria->n_levels() > 0, ExcMessage("The current Triangulation must not be empty.")); Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (), @@ -621,12 +619,10 @@ namespace internal void reserve_space (DoFHandler<2,spacedim> &dof_handler) { - const unsigned int dim = 2; - Assert (dof_handler.finite_elements != nullptr, - (typename DoFHandler::ExcNoFESelected())); + (typename DoFHandler<2,spacedim>::ExcNoFESelected())); Assert (dof_handler.finite_elements->size() > 0, - (typename DoFHandler::ExcNoFESelected())); + (typename DoFHandler<2,spacedim>::ExcNoFESelected())); Assert (dof_handler.tria->n_levels() > 0, ExcMessage("The current Triangulation must not be empty.")); Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),