From: Daniel Arndt Date: Thu, 26 Sep 2019 04:12:54 +0000 (-0400) Subject: Use alias X-Git-Tag: v9.2.0-rc1~1011^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17af4ffed9278e0aa704bb1d00149d70db1195b5;p=dealii.git Use alias --- diff --git a/source/numerics/solution_transfer.cc b/source/numerics/solution_transfer.cc index ede47089dc..2c8609409d 100644 --- a/source/numerics/solution_transfer.cc +++ b/source/numerics/solution_transfer.cc @@ -518,23 +518,21 @@ SolutionTransfer::interpolate( { const unsigned int old_index = pointerstruct->second.active_fe_index; + const FullMatrix &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; }