From: Wolfgang Bangerth Date: Sat, 1 Jul 2023 21:11:19 +0000 (-0600) Subject: Minor simplification of some code. X-Git-Tag: relicensing~790^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15568%2Fhead;p=dealii.git Minor simplification of some code. --- diff --git a/source/numerics/solution_transfer.cc b/source/numerics/solution_transfer.cc index 74bffa4ec3..3be488fe94 100644 --- a/source/numerics/solution_transfer.cc +++ b/source/numerics/solution_transfer.cc @@ -601,11 +601,11 @@ SolutionTransfer::interpolate(const VectorType &in, Assert(out.size() == dof_handler->n_dofs(), ExcDimensionMismatch(out.size(), dof_handler->n_dofs())); - std::vector all_in(1); - all_in[0] = in; - std::vector all_out(1); - all_out[0] = out; + std::vector all_in = {in}; + std::vector all_out = {out}; + interpolate(all_in, all_out); + out = all_out[0]; }