From: Daniel Arndt Date: Thu, 14 Jul 2016 20:43:13 +0000 (+0200) Subject: Remove warnings for unused variables in LocalIntegrators X-Git-Tag: v8.5.0-rc1~868^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2827%2Fhead;p=dealii.git Remove warnings for unused variables in LocalIntegrators --- 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