From: Daniel Arndt Date: Mon, 23 Jul 2018 09:05:20 +0000 (+0200) Subject: Avoid warning regarding unused variable in SolutionTransfer::unpack_callback X-Git-Tag: v9.1.0-rc1~887^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6955%2Fhead;p=dealii.git Avoid warning regarding unused variable in SolutionTransfer::unpack_callback --- diff --git a/source/distributed/solution_transfer.cc b/source/distributed/solution_transfer.cc index 7341cb6aaf..6ff7ac3f83 100644 --- a/source/distributed/solution_transfer.cc +++ b/source/distributed/solution_transfer.cc @@ -244,8 +244,6 @@ namespace parallel { typename DoFHandlerType::cell_iterator cell(*cell_, dof_handler); - const unsigned int dofs_per_cell = cell->get_fe().dofs_per_cell; - const std::vector<::dealii::Vector> dofvalues = Utilities::unpack< std::vector<::dealii::Vector>>( @@ -260,7 +258,7 @@ namespace parallel it_dofvalues != dofvalues.end(); ++it_dofvalues) Assert( - dofs_per_cell == it_dofvalues->size(), + cell->get_fe().dofs_per_cell == it_dofvalues->size(), ExcMessage( "The transferred data was packed with a different number of dofs than the" "currently registered FE object assigned to the DoFHandler has."));