From af2eb2b3ba890141888da1ad00992d46f9cdd9b1 Mon Sep 17 00:00:00 2001
From: Guido Kanschat <dr.guido.kanschat@gmail.com>
Date: Tue, 24 Sep 2002 16:51:46 +0000
Subject: [PATCH] unused parameters removed and warning added

git-svn-id: https://svn.dealii.org/trunk@6502 0785d39b-7218-0410-832d-ea1e28bc413d
---
 .../deal.II/include/fe/fe_dgp_nonparametric.h |  2 +
 .../deal.II/source/fe/fe_dgp_nonparametric.cc | 50 +++++++++++--------
 2 files changed, 30 insertions(+), 22 deletions(-)

diff --git a/deal.II/deal.II/include/fe/fe_dgp_nonparametric.h b/deal.II/deal.II/include/fe/fe_dgp_nonparametric.h
index b755739d1b..e8de069edd 100644
--- a/deal.II/deal.II/include/fe/fe_dgp_nonparametric.h
+++ b/deal.II/deal.II/include/fe/fe_dgp_nonparametric.h
@@ -25,6 +25,8 @@ template <int dim> class MappingQ;
 /**
  * Discontinuous finite elements evaluated at the mapped quadrature points.
  *
+ * Warning: this class does not work properly, yet. Don't use it!
+ *
  * This finite element implements complete polynomial spaces, that is,
  * $d$-dimensional polynomials of order $k$.
  *
diff --git a/deal.II/deal.II/source/fe/fe_dgp_nonparametric.cc b/deal.II/deal.II/source/fe/fe_dgp_nonparametric.cc
index e59835a116..c4d79a5087 100644
--- a/deal.II/deal.II/source/fe/fe_dgp_nonparametric.cc
+++ b/deal.II/deal.II/source/fe/fe_dgp_nonparametric.cc
@@ -251,12 +251,13 @@ FE_DGPNonparametric<dim>::get_data (const UpdateFlags      update_flags,
 
 template <int dim>
 void
-FE_DGPNonparametric<dim>::fill_fe_values (const Mapping<dim>                   &mapping,
-			     const typename DoFHandler<dim>::cell_iterator &cell,
-			     const Quadrature<dim>                &quadrature,
-			     typename Mapping<dim>::InternalDataBase       &mapping_data,
-			     typename Mapping<dim>::InternalDataBase       &fedata,
-			     FEValuesData<dim>                    &data) const
+FE_DGPNonparametric<dim>::fill_fe_values (
+  const Mapping<dim>&,
+  const typename DoFHandler<dim>::cell_iterator& cell,
+  const Quadrature<dim>&                         quadrature,
+  typename Mapping<dim>::InternalDataBase&,
+  typename Mapping<dim>::InternalDataBase&       fedata,
+  FEValuesData<dim>&                             data) const
 {
 				   // convert data object to internal
 				   // data for this class. fails with
@@ -265,7 +266,8 @@ FE_DGPNonparametric<dim>::fill_fe_values (const Mapping<dim>                   &
   InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
   
   const UpdateFlags flags(fe_data.current_update_flags());
-
+  Assert (flags & update_q_points, ExcInternalError());
+  
   const unsigned int n_q_points = data.quadrature_points.size();
   
   if (flags & (update_values | update_gradients))
@@ -290,13 +292,14 @@ FE_DGPNonparametric<dim>::fill_fe_values (const Mapping<dim>                   &
 
 template <int dim>
 void
-FE_DGPNonparametric<dim>::fill_fe_face_values (const Mapping<dim>                   &mapping,
-				  const typename DoFHandler<dim>::cell_iterator &cell,
-				  const unsigned int                    face,
-				  const Quadrature<dim-1>              &quadrature,
-				  typename Mapping<dim>::InternalDataBase       &mapping_data,
-				  typename Mapping<dim>::InternalDataBase       &fedata,
-				  FEValuesData<dim>                    &data) const
+FE_DGPNonparametric<dim>::fill_fe_face_values (
+  const Mapping<dim>&,
+  const typename DoFHandler<dim>::cell_iterator& cell,
+  const unsigned int                             face,
+  const Quadrature<dim-1>&                       quadrature,
+  typename Mapping<dim>::InternalDataBase&,
+  typename Mapping<dim>::InternalDataBase&       fedata,
+  FEValuesData<dim>&                             data) const
 {
 				   // convert data object to internal
 				   // data for this class. fails with
@@ -305,6 +308,7 @@ FE_DGPNonparametric<dim>::fill_fe_face_values (const Mapping<dim>
   InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
 
   const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
+  Assert (flags & update_q_points, ExcInternalError());
 
   const unsigned int n_q_points = data.quadrature_points.size();
   
@@ -330,14 +334,15 @@ FE_DGPNonparametric<dim>::fill_fe_face_values (const Mapping<dim>
 
 template <int dim>
 void
-FE_DGPNonparametric<dim>::fill_fe_subface_values (const Mapping<dim>                   &mapping,
-				     const typename DoFHandler<dim>::cell_iterator &cell,
-				     const unsigned int                    face,
-				     const unsigned int                    subface,
-				     const Quadrature<dim-1>              &quadrature,
-				     typename Mapping<dim>::InternalDataBase       &mapping_data,
-				     typename Mapping<dim>::InternalDataBase       &fedata,
-				     FEValuesData<dim>                    &data) const
+FE_DGPNonparametric<dim>::fill_fe_subface_values (
+  const Mapping<dim>&,
+  const typename DoFHandler<dim>::cell_iterator& cell,
+  const unsigned int                             face,
+  const unsigned int                             subface,
+  const Quadrature<dim-1>&                       quadrature,
+  typename Mapping<dim>::InternalDataBase&,
+  typename Mapping<dim>::InternalDataBase&       fedata,
+  FEValuesData<dim>&                             data) const
 {
 				   // convert data object to internal
 				   // data for this class. fails with
@@ -346,6 +351,7 @@ FE_DGPNonparametric<dim>::fill_fe_subface_values (const Mapping<dim>
   InternalData &fe_data = dynamic_cast<InternalData &> (fedata);
   
   const UpdateFlags flags(fe_data.update_once | fe_data.update_each);
+  Assert (flags & update_q_points, ExcInternalError());
 
   const unsigned int n_q_points = data.quadrature_points.size();
   
-- 
2.39.5