From 26290056def234a3578eefa02d5744843c622497 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 23 Jul 2018 11:05:20 +0200 Subject: [PATCH] Avoid warning regarding unused variable in SolutionTransfer::unpack_callback --- source/distributed/solution_transfer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.")); -- 2.39.5