]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use alias
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 26 Sep 2019 04:12:54 +0000 (00:12 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 26 Sep 2019 04:12:54 +0000 (00:12 -0400)
source/numerics/solution_transfer.cc

index ede47089dc7728a921d2b6efe9703fcfa901712f..2c8609409d3ab207f8ad9f592a5623c5169ff483 100644 (file)
@@ -518,23 +518,21 @@ SolutionTransfer<dim, VectorType, DoFHandlerType>::interpolate(
                     {
                       const unsigned int old_index =
                         pointerstruct->second.active_fe_index;
+                      const FullMatrix<double> &interpolation_matrix =
+                        interpolation_hp(active_fe_index, old_index);
                       // The interpolation matrix might be empty when using
                       // FE_Nothing.
-                      if (interpolation_hp(active_fe_index, old_index).empty())
+                      if (interpolation_matrix.empty())
                         tmp.reinit(dofs_per_cell, false);
                       else
                         {
                           tmp.reinit(dofs_per_cell, true);
                           const unsigned int old_index =
                             pointerstruct->second.active_fe_index;
-                          AssertDimension(
-                            (*valuesptr)[j].size(),
-                            interpolation_hp(active_fe_index, old_index).n());
-                          AssertDimension(
-                            tmp.size(),
-                            interpolation_hp(active_fe_index, old_index).m());
-                          interpolation_hp(active_fe_index, old_index)
-                            .vmult(tmp, (*valuesptr)[j]);
+                          AssertDimension((*valuesptr)[j].size(),
+                                          interpolation_matrix.n());
+                          AssertDimension(tmp.size(), interpolation_matrix.m());
+                          interpolation_matrix.vmult(tmp, (*valuesptr)[j]);
                         }
                       data = &tmp;
                     }

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.