From 24149ea95dd37963c4272d4f6849969a6cece786 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 2 Feb 2018 10:36:50 +0100 Subject: [PATCH] Fix unused variables in dof_handler.cc --- source/hp/dof_handler.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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 (), -- 2.39.5