From 9ec1e1dc93adb2505dbac953c10defa21935fcf5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 14 Jul 2016 22:43:13 +0200 Subject: [PATCH] Remove warnings for unused variables in LocalIntegrators --- include/deal.II/integrators/divergence.h | 16 +++++----------- include/deal.II/integrators/l2.h | 3 +-- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/include/deal.II/integrators/divergence.h b/include/deal.II/integrators/divergence.h index 031bda20a6..4bd9c90eb7 100644 --- a/include/deal.II/integrators/divergence.h +++ b/include/deal.II/integrators/divergence.h @@ -83,10 +83,9 @@ namespace LocalIntegrators const FEValuesBase &fetest, double factor = 1.) { - unsigned int fecomp = fe.get_fe().n_components(); const unsigned int n_dofs = fe.dofs_per_cell; const unsigned int t_dofs = fetest.dofs_per_cell; - AssertDimension(fecomp, dim); + AssertDimension(fe.get_fe().n_components(), dim); AssertDimension(fetest.get_fe().n_components(), 1); AssertDimension(M.m(), t_dofs); AssertDimension(M.n(), n_dofs); @@ -194,11 +193,10 @@ namespace LocalIntegrators const FEValuesBase &fetest, double factor = 1.) { - unsigned int fecomp = fetest.get_fe().n_components(); const unsigned int t_dofs = fetest.dofs_per_cell; const unsigned int n_dofs = fe.dofs_per_cell; - AssertDimension(fecomp, dim); + AssertDimension(fetest.get_fe().n_components(), dim); AssertDimension(fe.get_fe().n_components(), 1); AssertDimension(M.m(), t_dofs); AssertDimension(M.n(), n_dofs); @@ -303,11 +301,10 @@ namespace LocalIntegrators const FEValuesBase &fetest, double factor = 1.) { - unsigned int fecomp = fe.get_fe().n_components(); const unsigned int n_dofs = fe.dofs_per_cell; const unsigned int t_dofs = fetest.dofs_per_cell; - AssertDimension(fecomp, dim); + AssertDimension(fe.get_fe().n_components(), dim); AssertDimension(fetest.get_fe().n_components(), 1); AssertDimension(M.m(), t_dofs); AssertDimension(M.n(), n_dofs); @@ -342,10 +339,9 @@ namespace LocalIntegrators const VectorSlice > > &data, double factor = 1.) { - unsigned int fecomp = fe.get_fe().n_components(); const unsigned int t_dofs = fetest.dofs_per_cell; - AssertDimension(fecomp, dim); + AssertDimension(fe.get_fe().n_components(), dim); AssertDimension(fetest.get_fe().n_components(), 1); AssertDimension(result.size(), t_dofs); AssertVectorVectorDimension (data, dim, fe.n_quadrature_points); @@ -604,9 +600,7 @@ namespace LocalIntegrators double norm(const FEValuesBase &fe, const VectorSlice > > > &Du) { - unsigned int fecomp = fe.get_fe().n_components(); - - AssertDimension(fecomp, dim); + AssertDimension(fe.get_fe().n_components(), dim); AssertVectorVectorDimension (Du, dim, fe.n_quadrature_points); double result = 0; diff --git a/include/deal.II/integrators/l2.h b/include/deal.II/integrators/l2.h index 2a8fcd4989..8d6a90efbb 100644 --- a/include/deal.II/integrators/l2.h +++ b/include/deal.II/integrators/l2.h @@ -182,11 +182,10 @@ namespace LocalIntegrators const double factor = 1.) { const unsigned int n_dofs = fe.dofs_per_cell; - const unsigned int fe_components = fe.get_fe().n_components(); const unsigned int n_components = input.size(); AssertDimension(result.size(), n_dofs); - AssertDimension(input.size(), fe_components); + AssertDimension(input.size(), fe.get_fe().n_components()); for (unsigned int k=0; k