]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning regarding unused variable in SolutionTransfer::unpack_callback 6955/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 23 Jul 2018 09:05:20 +0000 (11:05 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 23 Jul 2018 09:10:49 +0000 (11:10 +0200)
source/distributed/solution_transfer.cc

index 7341cb6aaf13a69e1f98faac148886dbf5e0e6cd..6ff7ac3f83461d5441c527724624960332a13295 100644 (file)
@@ -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<typename VectorType::value_type>>
         dofvalues = Utilities::unpack<
           std::vector<::dealii::Vector<typename VectorType::value_type>>>(
@@ -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."));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.