From: Jiaqi Zhang Date: Wed, 13 Apr 2022 19:36:16 +0000 (-0400) Subject: rm unused variables X-Git-Tag: v9.4.0-rc1~307^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df6d38b7c64b87bc6f6a6b3ceccc19fa29ec7d90;p=dealii.git rm unused variables --- diff --git a/include/deal.II/fe/fe_interface_values.h b/include/deal.II/fe/fe_interface_values.h index 3dd232ff74..ab06a5ef84 100644 --- a/include/deal.II/fe/fe_interface_values.h +++ b/include/deal.II/fe/fe_interface_values.h @@ -3011,7 +3011,7 @@ namespace FEInterfaceViews AssertDimension(interface_dof_indices.size(), local_dof_values.size()); - for (unsigned int i = 0; i < interface_dof_indices.size(); ++i) + for (unsigned int i : this->fe_interface->dof_indices()) local_dof_values[i] = dof_values(interface_dof_indices[i]); } @@ -3318,9 +3318,6 @@ namespace FEInterfaceViews { AssertDimension(values.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -3364,9 +3361,6 @@ namespace FEInterfaceViews { AssertDimension(values.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -3407,9 +3401,6 @@ namespace FEInterfaceViews { AssertDimension(gradients.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -3451,9 +3442,6 @@ namespace FEInterfaceViews { AssertDimension(values.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -3496,9 +3484,6 @@ namespace FEInterfaceViews { AssertDimension(gradients.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -3540,9 +3525,6 @@ namespace FEInterfaceViews { AssertDimension(hessians.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -3584,11 +3566,7 @@ namespace FEInterfaceViews { AssertDimension(hessians.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - - for (unsigned int dof_index = 0; dof_index < interface_dof_indices.size(); - ++dof_index) + for (unsigned int dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { if (dof_index == 0) @@ -3632,11 +3610,7 @@ namespace FEInterfaceViews AssertDimension(third_derivatives.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - - for (unsigned int dof_index = 0; dof_index < interface_dof_indices.size(); - ++dof_index) + for (unsigned int dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { if (dof_index == 0) @@ -3981,9 +3955,6 @@ namespace FEInterfaceViews { AssertDimension(values.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -4027,9 +3998,6 @@ namespace FEInterfaceViews { AssertDimension(values.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -4070,9 +4038,6 @@ namespace FEInterfaceViews { AssertDimension(gradients.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -4114,9 +4079,6 @@ namespace FEInterfaceViews { AssertDimension(values.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -4159,9 +4121,6 @@ namespace FEInterfaceViews { AssertDimension(gradients.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -4203,9 +4162,6 @@ namespace FEInterfaceViews { AssertDimension(hessians.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - for (const auto dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { @@ -4247,11 +4203,7 @@ namespace FEInterfaceViews { AssertDimension(hessians.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - - for (unsigned int dof_index = 0; dof_index < interface_dof_indices.size(); - ++dof_index) + for (unsigned int dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { if (dof_index == 0) @@ -4295,11 +4247,7 @@ namespace FEInterfaceViews AssertDimension(third_derivatives.size(), this->fe_interface->n_quadrature_points); - const auto &interface_dof_indices = - this->fe_interface->get_interface_dof_indices(); - - for (unsigned int dof_index = 0; dof_index < interface_dof_indices.size(); - ++dof_index) + for (unsigned int dof_index : this->fe_interface->dof_indices()) for (const auto q_index : this->fe_interface->quadrature_point_indices()) { if (dof_index == 0)