From 51d4f71401a5199f8b368928fda9c3833cd9fe2c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 1 Jul 2023 15:11:19 -0600 Subject: [PATCH] Minor simplification of some code. --- source/numerics/solution_transfer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]; } -- 2.39.5